Nesting dolls: design and print matryoshka sets
Print nesting dolls: a matryoshka set that really fits together
A matryoshka is made of two halves that close into one doll, and inside it sits the next smaller doll, and inside that another one. This generator builds such a set of nesting dolls for printing: you shape the largest doll, choose how many dolls the set has, and the generator makes the smaller ones so that each fits inside the next. The halves hold together with a small lip, no glue needed.
The dolls are smooth and round, with no face and no paint. That is on purpose: you get the plain shape and finish it yourself, with paint, stickers or a filament you like. Finished sets to look at and try out are in the examples, for instance the classic set of four, the mini matryoshkas or the slim dolls.
How the generator works
Everything runs in your browser. Nothing is uploaded, and your design lives in the link you copy with “Share”. You open the generator, change values or start from an example, see the dolls at once in the 3D preview and download the result as STL or 3MF. Any slicer opens the file.
In the model, every half already lies on the plate the way it is printed: the bottom halves foot down with the opening facing up, the top halves with the opening down and the head pointing up. You normally don’t have to rotate anything.
How the dolls fit inside each other
You only shape the largest doll yourself. Every inner doll is a scaled copy of the next larger one, the largest copy that still fits inside. The free space all around it is the value of “Gap between dolls” (0.3–5 mm, default 1 mm). The doll stands on the floor of the larger one or rests with its foot edge on the widening wall. More gap makes the inner dolls smaller, less gap makes them larger and the fit snugger.
Wall, lip and tolerance are not scaled. Every doll gets the same wall and lip as the largest one, so each half prints equally well and the fit is the same everywhere. The small dolls therefore keep a relatively thick wall and little hollow space.
There is a lower limit: a doll is only built if it is at least 12 mm across and 20 mm tall. If you ask for more dolls than fit, the generator shows fewer and tells you. A larger first doll or less gap helps.
“Number of dolls” takes 1–8. With one doll you get a single hollow figure, for example as a gift box.
The shape of the largest doll
The group “Shape of the largest doll” describes the outer shell of the biggest doll. The values read like the dimensions of a figure:
| Field | Range | Default | Effect |
|---|---|---|---|
| Height | 30–175 mm | 103.1 mm | total height with both halves closed |
| Hip diameter | 16–150 mm | 51.5 mm | widest point, where the halves meet |
| Hip height | 6–120 mm | 44 mm | height of the joint above the bed |
| Bottom diameter | 8–150 mm | 32 mm | diameter at the foot |
| Head diameter | 8–150 mm | 35 mm | diameter of the head before rounding |
| Roundness | 0.5–30 mm | 10 mm | radius of the rounding over the whole body |
The defaults come from the fourth doll of the original. With them and four dolls you get dolls 103, 79, 55 and 32 mm tall. For a tall, slim figure, the slim dolls, 150 mm tall show how hip, bottom and head behave. A wide head over a small foot is the three nesting eggs, and a pin shape is in the bowling-pin shaped dolls.
The generator keeps the shape printable and tells you when it changes something. Bottom and head can’t be wider than the hip. The bottom is widened if the side of the bottom half would otherwise overhang more than 50°. The hip height moves if a half would have no room for the lip, the cavity and the head, and the roundness shrinks if bottom, head or wall could no longer follow it. The smaller dolls also get a smaller rounding.
Wall, lip and fit of the halves
The group “Wall and lip” decides how the two halves hold together.
- Wall thickness (1.2–4 mm, default 2.5 mm): the wall of every doll. 2.5 mm is sturdy but heavy; with 1.8 mm you save material, as the five dolls with a thin wall show.
- Lip width (0.8–3 mm, default 1.25 mm): how far the joint steps in. The bottom half keeps wall minus lip width as its lip, 1.25 mm with the defaults.
- Lip height (1.5–10 mm, default 3 mm): how far the lip reaches into the top half. Taller dolls hold better with a taller lip; the original uses 6 mm on its largest doll.
- Lip tolerance (0–0.6 mm, default 0.15 mm): play between lip and recess per side. 0.15 mm is a firm press fit. If the halves are too tight, add 0.05–0.1 mm. A loose fit with 0.25 mm is in the three dolls with a loose fit.
The right tolerance depends a lot on your printer. The first layer often squishes out a little, and because the top halves stand with the recess facing down on the bed, that can narrow the recess. If the halves won’t go together, first try more tolerance, then your slicer’s elephant foot compensation.
Print plates, single dolls and colors
The generator spreads all halves over print plates of about 172 mm on a side, which fit a 180 mm bed. A set of four dolls has eight halves and still lies on one plate. Larger sets, such as the six dolls up to 170 mm, need two plates: set “Print plate” to the one you want and download each separately. The editor tells you how many plates the set has.
“Only doll” stays at 0 when you want the whole set. With 1 you build only the largest doll, with 2 the next one, and so on. That is how you print each doll in its own color: one print job per doll, with a filament change in between. The second doll only example shows it.
The color in the “Dolls” color field applies to everything that is being built. There is no multi-color export and no color change inside a doll.
Examples and print numbers
The numbers come from slicer runs with PrusaSlicer, the Prusa MINI profile, 0.20 mm SPEED and Prusament PLA, without automatic supports. They show the order of magnitude; your printer and profile will differ.
| Example | Dolls (height) | Filament | Time |
|---|---|---|---|
| Classic set | 4 (103, 79, 55, 32 mm) | 71.3 g | 3 h 1 min |
| Five dolls from the original | 5 (140, 111, 83, 55, 28 mm) | 131.5 g | 4 h 58 min |
| Mini matryoshkas | 4 (66, 50, 37, 26 mm) | 25.6 g | 1 h 14 min |
| Pocket pair | 2 (45, 33 mm) | 7.8 g | 39 min |
| Slim dolls | 4 (150, 119, 88, 57 mm) | 102.3 g | 4 h 23 min |
| Six dolls, plate 1 | dolls 1, 2, 5, 6 | 170.9 g | 5 h 51 min |
The classic set takes about 71 g of filament, and the largest doll alone, as the 120 mm gift box, prints in a little over 69 g and about 2 h 23 min.
Printing tips
- Supports off. With “Print without supports” on (the default), every top half gets a 50° chamfer above the lip inside and a pointed roof in the head (60°, or 50° in flat heads). That leaves no overhang for the slicer to support. The tip of the roof sits on the 0.2 mm layer grid, so a 0.2 mm layer height fits best.
- Rounded cavity with supports. If you switch the option off, the cavity of the top half is round as in the original, with a flat ceiling in the head. It needs supports; the example with the rounded cavity takes about 9.8 g more with automatic supports than its 69.7 g without. The slicer builds them from the plate, since the opening faces down.
- Material. The slicer numbers above are for PLA. If you use another material, test the fit of the halves again before printing the whole set.
- Test the fit first. Because wall, lip and tolerance are the same for every doll, the smallest doll is enough for a test: set “Only doll” to the last doll, print it and press the halves together. It costs a few grams.
- Finishing. Sand the joint only lightly, and don’t paint the lip: layers of paint change the fit.
- Assembly. Push the top half straight onto the lip of the bottom half. A firm fit is intended; you don’t need glue.
Test printing and safety
We have not test-printed the set. The geometry is checked by machine: every part is watertight, lies on the bed, and PrusaSlicer sets no supports for any example except the one with the rounded cavity. But nobody here has held the dolls in their hands. The fit of the halves is a starting value, not a tested one.
The small dolls, the innermost ones in particular, are not for small children. They can be swallowed, and printed parts are not tested toys.
Origin and license
The generator is a port of the OpenSCAD model Parametric Matryoshka (aka Russian nesting) Dolls by batman, published on Printables under CC BY 4.0. The original builds each half as a hull of cylinders rounded with a sphere, hollows it out with an even wall and gives the bottom half a lip with a tolerance. It contains five dolls set by hand, from 45 to 140 mm tall, printed in PLA at 0.15 mm layer height with tree supports. The generator’s defaults come from the fourth doll.
We ported the OpenSCAD file to TypeScript and turned its dimensions into parameters. With “Print without supports” switched off, the geometry matches the original: volume and size of the first, fourth and fifth doll differ by at most 0.05 % and 0.005 mm. We did not take over the original’s finished STL files.
We changed three things, and these changes are ours, not the original’s:
- The inner dolls are scaled copies of the largest doll, each as large as fits inside the next. The original sets five dolls by hand.
- “Print without supports” adds the 50° chamfer and the pointed roof inside the top half. Switched off, you get the original’s round cavity, which needs supports.
- A set of limits keeps the shape printable (bottom and head no wider than the hip, overhang at most 50°, enough wall around the recess).
The license texts are on the licenses page. Now open the nesting dolls generator or browse the examples. If you would rather print a whole game, try the chess set generator or the building brick generator.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Set | |||
| Number of dolls | 4 | 1 – 8 | How many dolls the set has. Each inner doll is a smaller copy of the largest one, as large as fits inside the next. |
| Gap between dolls | 1 mm | 0.3 – 5 mm | Free space all around a doll inside the next larger one. More gap makes smaller inner dolls. |
| Shape of the largest doll | |||
| Height | 103.1 mm | 30 – 175 mm | Total height of the largest doll with both halves closed. |
| Hip diameter | 51.5 mm | 16 – 150 mm | The widest point of the largest doll, where the two halves meet. |
| Hip height | 44 mm | 6 – 120 mm | Height of the joint above the bed: the height of the bottom half without its lip. |
| Bottom diameter | 32 mm | 8 – 150 mm | Diameter at the foot. At most the hip diameter; widened if the side would overhang more than 50°. |
| Head diameter | 35 mm | 8 – 150 mm | Diameter of the head before rounding. At most the hip diameter. |
| Roundness | 10 mm | 0.5 – 30 mm | Radius of the rounding over the whole body (smaller dolls get less). Limited by the bottom, head and wall. |
| Wall and lip | |||
| Wall thickness | 2.5 mm | 1.2 – 4 mm | Wall of every doll; it stays the same for the small ones. |
| Lip width | 1.25 mm | 0.8 – 3 mm | How far the joint steps in: the bottom half keeps wall − lip width as its lip. |
| Lip height | 3 mm | 1.5 – 10 mm | How far the lip reaches into the top half. |
| Lip tolerance | 0.15 mm | 0 – 0.6 mm | Play between lip and recess per side. 0.15 mm is a firm press fit; add 0.05–0.1 mm if the halves are too tight. |
| Export | |||
| Only doll | 0 | 0 – 8 | 0 = the whole set; 1 = only the largest doll, 2 = the next one, and so on (for printing each doll in its own color). |
| Print plate | 1 | 1 – 6 | Which plate of the set to build when it does not fit onto one 180 mm bed. |
Frequently asked questions
Do I need supports for the nesting dolls?
No, as long as “Print without supports” is on (the default). The bottom halves print foot down, the top halves print opening down, and the chamfers and the pointed roof inside keep every surface within 50°. Only with the option off (the rounded cavity of the original) do you need supports.
What if the halves are too tight or too loose?
Adjust “Lip tolerance”: the default of 0.15 mm is a firm press fit. If the halves are too tight, add 0.05–0.1 mm; if they wobble, take a little away. Test with the smallest doll first by setting “Only doll” to it.
How many dolls fit inside each other?
Up to eight. A doll is only built if it is at least 12 mm across and 20 mm tall; otherwise the generator shows fewer dolls and tells you. More gap or a larger first doll makes room.
Can I print each doll in a different color?
Yes, as separate print jobs: set “Only doll” to 1, 2, 3 and so on, pick a color for each, and download each file on its own. A single doll has one color; this generator has no multi-color export.
Are the dolls suitable for small children?
No. The inner dolls in particular are small enough to swallow (choking hazard), and printed parts are not tested toys. Use them as decoration, or for older children under supervision.
Have you printed the set yourselves?
No. We compared the geometry with the OpenSCAD original and checked every example in a slicer, but we have not test-printed it. The fit of the halves is a starting value, so test it on the smallest doll first.
Origin & license
- Parametric Matryoshka (aka Russian nesting) Dolls by batman · CC BY 4.0 · code ported – Top and bottom halves (hull of cylinders rounded by a sphere, even wall, lip with tolerance) ported from nesting.scad, defaults from doll 4; inner dolls scaled instead of set by hand, optional 50° chamfers and a pointed roof inside the top half for printing without supports