Calculators
Seventeen live calculators for everything you would otherwise do on the back of an envelope: how much a print costs, how fast the hotend can really go, how big to model a hole, how far a snap fit may bend and how much plastic a color change throws away.
Every calculator shows its formula, explains why the formula works and lists the usual traps. Results update as you type, your inputs are remembered in this browser (nothing is uploaded), and every calculator has an illustration that redraws with your numbers. Everything runs offline in plain JavaScript.
Pick a calculator
Click a tile to jump straight to the tool. The calculators are grouped by the stage of a project in which you usually need them: planning a job, tuning the slicer, designing the part and checking the machine. Material-dependent calculators share one table of typical values, so changing the material in one tab does not silently contradict another.
The calculators
Each tab below is self-contained: inputs on the left, live result on the right, an illustration under the result, then the formula and a short field guide. Use Tab to move between inputs; every field has a label and the results region is announced politely to screen readers.
🔰 Filament weight, length and cost
Slicers report plastic use as grams, meters or cubic millimeters depending on the screen. Spools are sold by weight and priced per kilogram, while a printer's extruder moves length. This calculator converts between all of them for any material in the density table, with an optional waste allowance for purge, supports and failed starts.
Filament weight, length & cost
How to use it. If the slicer says "Total filament weight 86 g", choose From slicer grams, enter 86, pick the material and the price of your spool. If you only know the volume of the plastic that will actually be deposited (for example from a CAD "volume" multiplied by the share that is solid), choose From plastic volume. The waste field adds a percentage on top, which is where purge lines, brims, skirts, supports that are not in the estimate and the occasional failed first layer live. 3–8 % is a realistic allowance for single-color work; multi-color jobs can be far higher (see the X2D flush tab).
Why density matters. A 1 kg spool of ABS (1.04 g/cm³) contains about 20 % more length than a 1 kg spool of PETG (1.27 g/cm³) and 16 % more than PLA. Two prints with the same geometry therefore weigh differently, and "grams per print" comparisons between materials are only fair after converting to volume. Carbon- and glass-filled filaments are denser than their base polymer, which shortens the length on the spool.
Weigh the finished part once and compare it with the slicer's prediction. A consistent 3–5 % error is normal (flow ratio and density tolerance); a 15 % error means your density or flow ratio assumption is off.
🔰 Real cost of a print
Plastic is rarely the biggest cost of a print once you count machine wear, electricity, failures and your own time. This calculator builds a complete cost per part and, optionally, a selling price with a margin. Use it to decide whether printing, buying or batching is cheaper.
Print cost calculator
Reading the fields. Average watts is not the printer's rated maximum: heating the bed and chamber peaks high for a few minutes, then the average drops sharply. A cheap plug-in energy meter over one long print gives the best number; 100–250 W averages are typical for an enclosed CoreXY machine running PLA, and engineering materials with a heated chamber run higher. Lifetime hours is how long you expect the machine to stay useful (3,000–8,000 h is a fair planning range). Upkeep per hour covers nozzles, build plates, belts, lubricant and filters.
If each attempt fails with probability p, the expected number of attempts to get one good part is 1/(1 − p) (a geometric series: 1 + p + p² + …). A 10 % failure rate therefore raises machine cost by 11 %, a 25 % failure rate by 33 %. Labor is not multiplied here because checking and restarting a failed print usually costs less time than the original job; raise the labor minutes if that is not true for you.
For selling prints, licenses and sustainability see Economics, licensing & sustainability.
🔧 Print time estimator
The slicer's time estimate is better than anything you can do by hand, but it needs a sliced file. This estimator answers the question before slicing: if my part deposits this much plastic, what happens to the time when I change layer height, speed or the flow limit? The chart under the result redraws the time curve across layer heights.
Print time estimator
The efficiency factor. A printer almost never moves at its commanded feed rate. Short segments, corners, acceleration ramps, retractions and travel moves eat time. For a mix of outer walls (slow), infill (fast) and small features, 55–75 % of the ideal flow is typical on a fast machine; a plain box with long straight lines can reach 85 %. Calibrate the factor once: slice one of your normal parts, compare the slicer's time with this tool's result at 100 %, then keep the ratio.
To reach speed v at acceleration a a move needs v²/(2a) of distance. At 300 mm/s and 20,000 mm/s² that is 2.25 mm on the way up and again on the way down, so a 4 mm move never reaches 300 mm/s at all. Small and detailed parts therefore print at a fraction of the headline speed, which is why efficiency drops for miniatures.
Related: Speed, cooling & quality.
🔧 Volumetric flow and max-flow check
A hotend is a small melting pump. How fast it can push plastic is measured in cubic millimeters per second (mm³/s), not millimeters per second of travel. Multiply the line width, the layer height and the speed, and you get the demand on the melt zone. If the demand exceeds supply the extruder skips, lines thin out and layers delaminate. This tool shows the demand, compares it with a starting estimate for your hotend and material, and tells you the maximum speed that is safe.
Volumetric flow checker
Where do the limits come from? They are starting estimates. Real limits depend on nozzle temperature (a hotter melt flows faster, until it degrades), filament formulation, nozzle geometry and the length of the melt zone. Slicer filament profiles carry a "max volumetric speed" per material and nozzle; trust those over this table when they differ. The most reliable method is a max-flow test: print a tower whose speed increases every few millimeters, and read the height at which the surface turns ragged or the extruder clicks. Divide by 0.85 for a safety margin.
The X2D's auxiliary (right) nozzle is limited to about 200 mm/s and roughly 1,000 mm/s² by Bambu Lab, and it is fed over a longer path from the rear-mounted auxiliary extruder, so treat its flow capacity conservatively and expect it to be best for supports and non-critical surfaces. The entry in the hotend list is a deliberately cautious assumption, not a published specification.
Why the rounded model? Slicers do not extrude rectangles; squeezed plastic has rounded sides. That is why the rounded area is slightly smaller than w × h. See Slicer settings explained for the settings that feed this formula.
🔰 Layer count, layer height and color-change heights
Every print is a stack of layers, and the model height decides how many. This tool shows the layer count, the true top height after rounding, and which layer heights divide your model evenly. It also finds the layer and exact Z-height at which a mid-print color or filament swap will happen.
Layer counter
Why divisibility matters. If the model height is 20.1 mm and the layer height is 0.2 mm, the slicer must either drop the last 0.1 mm or print a half-thickness layer. Neither is harmful on a plain part, but for functional parts (stack heights, lids, press fits along Z) it changes dimensions. Choose a layer height that divides the height after the first layer, or adjust the model by a tenth of a millimeter.
Z-resolution "magic numbers". Stepper-driven Z screws move in whole full-steps best. An 8 mm-lead screw with 200 full steps per turn advances 0.04 mm per full step, so layer heights that are multiples of 0.04 mm (0.08, 0.12, 0.16, 0.20, 0.24, 0.28 mm) are exact, and 0.15 mm is not. Check your printer's Z mechanism before worrying: many modern machines hide this with fine microstepping or different mechanics.
A mid-print pause (for a magnet, a nut or a color swap) must start at a layer boundary. Enter the height of the feature in the "pause at Z" field to see the layer that contains it and where that layer ends; pause after the layer that finishes the cavity.
🔰 Filament drying temperature and time
Most filaments absorb water from the air. Wet filament hisses, pops, strings and prints weak, rough parts. Drying fixes it, but each material has its own sensible temperature: too cool and nothing happens, too hot and PLA spools soften and tangle. This tool gives a typical temperature and time, scales them for how wet the spool is and for the maximum temperature of your dryer, and warns you when the dryer cannot reach what the material wants.
Drying lookup
How the estimate is built. The table time is for a normally stored 1 kg spool that has been open for a few weeks. A sealed spool with desiccant needs less; a spool that has sat in a humid room for months, or that pops and steams when printing, needs more. Heavy spools dry from the outside in, so mass raises the time moderately. The last term models a dryer that cannot reach the ideal temperature (for example an enclosed multi-spool unit limited to 65 °C): diffusion of water out of the plastic slows down roughly exponentially with lower temperature, so you compensate with time, up to a point. A material that needs 80 °C will not be fully dried by a few extra hours at 60 °C if the target is a very low moisture level.
The AMS 2 Pro has two drying modules and a maximum drying temperature of 65 °C, which comfortably covers PLA, PETG, TPU and PVA. Nylon, PC and the strongly water-absorbing engineering grades want hotter, longer drying than 65 °C allows, so dry those in a dedicated dryer first and keep them sealed, then use the AMS mainly to keep them from re-absorbing during a print. The yellow-to-purple desiccant indicator tells you when the silica is saturated; see AMS 2 Pro deep dive.
Reference table (typical values, approximate)
For moisture science, dryers and storage see Drying & storage.
🔧 Shrinkage compensation scale
Plastic is printed hot and measured cold. As it cools below its glass transition it contracts, so a part designed as 100.00 mm comes out slightly smaller, by an amount that depends on the polymer. Semi-crystalline plastics (nylon, PP) shrink most, amorphous ones (PLA, PETG) least. This tool gives a typical scale for each material and, better, a scale calculated from your measured test part.
Shrinkage compensation
Measure, do not guess. Print a calibration cube or, better, a long flat bar at least 100 mm long (accuracy improves with length), let it cool completely, and measure with calipers at several positions. Enter the nominal and measured values and the scale you printed at. A single measurement improves accuracy by an order of magnitude over the table. XY and Z shrink differently, usually Z less; if you only calibrate XY, parts stay accurate across the plate but not in height.
Over-extrusion makes outer dimensions larger and holes smaller; under-extrusion does the opposite. Shrinkage scale corrects a uniform percentage error, flow errors are not uniform (they add a fixed amount per wall). Calibrate flow and temperature first, then shrinkage. Slicers that offer a per-filament "shrinkage" field use different conventions, so read the tooltip in your version before entering the number.
Typical shrinkage by material
🔧 Tolerance and hole-size recommender
You want a 8 mm rod to slide through a printed hole, or a 8 mm peg to press into one. If you model the hole at exactly 8 mm it will print too small to move, because the first and last perimeters squish outward into the hole and shrinkage pulls the plastic inward. This tool suggests the diameters to model for a chosen fit, based on the mating part's nominal size, hole orientation, material shrinkage and how well tuned your printer is.
Hole and peg diameters
Why holes shrink more than pegs grow. The outer wall of a hole is a small-radius curve printed as a polygon of straight segments, and the nozzle's rounded bead overhangs the nominal edge by a fraction of the line width. Horizontal holes (axis in the XY plane) also sag at the top where the roof is bridged, so they need more compensation than vertical holes. The quality factor scales those allowances: a tuned printer with calibrated flow needs less, a printer with unknown history more.
Never trust any compensation table, including this one, for a part you will print more than once. Print a coupon: a strip with holes from −0.2 to +0.5 mm in 0.05 mm steps, test with the real mating part, write the winning number into your CAD parameters, and keep it per material and nozzle. See Tolerances & fits for coupon designs and fit classes.
| Fit | Diametral clearance | Typical use |
|---|---|---|
| Loose / free | +0.50 mm | Hinge pins, parts that rotate freely or must fit despite warping |
| Sliding | +0.30 mm | Shafts, guides, axles that slide or rotate with a little play |
| Snug | +0.15 mm | Locating pins, bearings with light hand pressure |
| Press | −0.10 mm | Press-fit pins and magnets; needs tuned printer and some patience |
| Heavy press | −0.25 mm | Permanent joints; risk of cracking brittle plastics |
🔧 Heat-set insert pockets (M2–M8)
Brass heat-set inserts give plastic parts reusable metal threads. You push the insert into a slightly undersized hole with a heated tip; the plastic around it melts, flows into the knurling and re-solidifies. The pocket has to be the right diameter, deep enough to hold the insert plus the displaced plastic, and surrounded by enough wall. The calculator derives all three from the insert's outer diameter and length; by default it uses the hole size recommended for standard brass inserts of each thread size.
Heat-set insert pocket
Procedure. Preheat the soldering iron with a tip that fits the insert (usually a dedicated insert tip). Set a temperature a little above the plastic's printing minimum, rest the insert on the hole, and let the tip's weight and warmth sink it; stop when the insert is flush with or 0.2 mm below the surface. Do not push hard, which creates bulging walls and tilted inserts. Let the part cool in place before loading the thread. If plastic oozes out of the hole, the hole is too small or the iron too hot.
Choosing where to put inserts. Inserts hold best when pulled along the hole axis in a thick, solid boss. Add at least two extra perimeters around the pocket, use higher infill nearby (or modifier regions in the slicer), and orient the part so the insert hole is vertical: the hole axis then runs through the layer stack and the pull-out force is resisted by the full wall perimeter rather than by individual layer lines. See Joints & fasteners.
Typical sizes (verify with your insert supplier's datasheet)
🚀 Snap-fit cantilever strain and force
A cantilever snap-fit is a small beam that bends as the mating part slides over its hook and springs back to lock. It works only if the material's strain stays below its elastic limit; otherwise the hook yields, whitens or snaps. This tool computes the maximum strain at the root of the beam from its dimensions and deflection, compares it with a printed-part allowance, estimates the bending force and the mating force, and suggests a maximum safe deflection.
Cantilever snap-fit
Reading the numbers. Strain scales with thickness and deflection and falls with the square of length. Doubling the beam length therefore cuts strain by a factor of four for the same deflection, which is why long, thin hooks are gentle. The cheapest improvement is almost always length; the second is a taper, which spreads strain along the beam instead of concentrating it at the root; the third is a generous fillet (radius ≥ 0.5 × thickness) at the root, which this simple formula does not capture but which can halve the peak stress.
The allowable strain values in the table are conservative for 3D-printed parts: layer adhesion reduces strain at failure compared with injection-molded data sheets. A hook printed with its axis along Z (layers perpendicular to the beam) bends across the layer lines and breaks at a fraction of the strain it tolerates when printed lying flat. Choose the "upright" orientation in the calculator to see how much margin disappears. Repeated snapping (fatigue) needs a safety factor of 2 or more below the single-snap limit.
Typical values used by the calculator
🚀 Beam deflection and bending stiffness
Will this bracket sag under a load, and what happens if I print it on its side? A rectangular beam's stiffness depends on the third power of its depth in the bending direction: doubling the height of a rib makes it eight times stiffer, whereas doubling its width only doubles it. This tool covers five common loading cases, includes the orientation of the cross-section and a knock-down for printed layer direction.
Rectangular beam
What the print direction does. The modulus along a printed line is close to the filament's bulk value, but across layers it is lower and much weaker in tension. A beam printed flat with the load pushing perpendicular to the layers stresses the lines in tension along their length (strong); a beam printed standing upright pulls the layers apart (weak). The calculator applies simple knock-down factors of 1.0 and 0.8 on stiffness and 1.0 and 0.5 on strength, a rough but honest approximation.
Make parts deeper, not wider. A 4 mm-thick, 20 mm-wide strip with a 12 mm rib added along the bending direction is many times stiffer than a 20 × 4 mm plate for little extra plastic. Fillets, ribs and sandwich-like shells all follow from the h³ rule. Read more in Strength & orientation.
🔰 Screw, nut and counterbore clearances
Fasteners are standardized in metal, but printed holes are not metal-accurate. This tool lists the hole sizes you should model for a metric screw: the clearance hole, the counterbore for a socket-head screw, the countersink, the hexagonal nut trap and the pilot hole for a self-tapping screw into plastic. Pick the size, the hole orientation and how generous you want the fit.
Metric screw clearances
Fit classes. ISO 273 defines fine, medium and coarse clearance holes for metal parts; M3 gives 3.2, 3.4 and 3.6 mm. In 3D printing, "medium" plus the print allowance is usually right for a hole that must align with another part, and "coarse" is the safe choice for holes that only need to let the screw through. Pilot holes for self-tapping screws are tighter than the screw's core; too small cracks the boss, too large strips. A boss for a screw needs a wall of at least one screw diameter all around.
Threads smaller than about M8 rarely print well directly; use a metal screw into a pilot hole or a heat-set insert (see the Inserts tab) for small sizes, and design printed threads for M10 and larger with a pitch of 1.5 mm or more and 0.2–0.3 mm radial clearance between mating threads.
Reference sizes (ISO 273, ISO 4762, ISO 4032, typical)
🔰 Unit converter
Slicers, CAD packages, spool labels and forum posts mix metric and imperial units. Type a value on either side of a row and the other side updates instantly. The rows cover the conversions that come up in printing: lengths, thicknesses, temperatures, masses, speeds and mechanical units.
Two-way converter
- 0.4 mm nozzle
- 0.0157 in
- 256 mm bed
- 10.08 in
- 65 °C chamber
- 149 °F
- 300 °C nozzle
- 572 °F
- 1 kg spool
- 35.27 oz
- 300 mm/s
- 11.81 in/s
- 20 000 mm/s²
- 2.04 g
Temperature differences are not temperatures. A change of 10 °C is a change of 18 °F, not 50 °F. When a spec says "±5 °C", the Fahrenheit tolerance is ±9 °F. The converter treats the fields as absolute temperatures; for differences, multiply or divide by 1.8 only. Also beware of mil versus mm in older documentation: one mil (or "thou") is one thousandth of an inch, 25.4 µm.
Acceleration in g. 9,807 mm/s² is exactly one standard g, which is a handy mental scale: a printer accelerating at 20,000 mm/s² pushes the toolhead with about 2 g, which is why mass and rigidity matter so much for speed.
🔰 Spool length, remaining filament and "will it finish?"
Will the filament left on the spool finish a 140 g print? Weigh the spool, subtract the empty spool, and compare. This tool turns the gross weight on the scale into remaining grams and meters, tells you whether the next print fits with a safety margin, and offers a second estimate from the outer diameter of the wound filament when you have no scale at hand.
Remaining filament (from weight)
Remaining filament (from wound diameter)
Tare weights. Empty spools vary: refillable plastic spools weigh around 100–250 g, cardboard ones 100–180 g, and "spool-less" refills have only a core. The only reliable number is your own: weigh an empty spool of the same brand once and note it on the spool. Bambu Lab filament carries an RFID tag read by the AMS that estimates the remaining amount; use this tool for non-RFID spools or to double-check the estimate.
Packing factor. Filament winds in near-hexagonal layers, which would be 90.7 % efficient if perfect, but winding gaps, crossovers and a tilt of each layer reduce it to roughly 80–87 %. The diameter method is therefore good to about ±10 %, enough to decide whether a half-empty spool will survive a small print but not a 12-hour one.
🔰 Nozzle diameter → layer height and line width
The nozzle diameter fixes the range of sensible layer heights and line widths. Too thin a layer wastes time and may clog; too thick a layer cannot be squashed against the layer below and loses strength. This tool gives the recommended windows for any nozzle, shows the extruded line to scale, and converts a desired wall thickness into a whole number of perimeters.
Nozzle settings guide
Why layer height has an upper limit. The bead is squeezed between the nozzle tip and the layer below. If the layer is nearly as thick as the orifice, the plastic cannot spread sideways and presses against the nozzle instead of the part; bonding collapses. Below about 20–25 % the extrusion pressure rises sharply and the nozzle begins to scrape the previous layer. A 0.4 mm nozzle is happiest between 0.10 and 0.30 mm.
Wall thickness is made of lines. A 1.2 mm wall printed with 0.42 mm lines is not 3 lines (1.26 mm) plus a gap but 2.86 lines. The slicer will fill the gap with a thinner line or a gap-fill path; a thickness of exactly n × line width avoids that. Design walls as multiples of the line width: 0.84, 1.26, 1.68 mm and so on for a 0.42 mm line.
The X2D takes tool-free swappable hotends in several diameters. The optional Multi-Size Hotends Kit adds 0.2 mm and 0.6 mm, which are good starting points for fine detail and fast, strong draft parts. Which filaments suit which diameter is summarized in Filament compatibility.
🚀 Belt, pulley, e-steps and rotation distance
If you build, upgrade or tune a Marlin or Klipper printer, you need to know how many motor steps move an axis by one millimeter. Belt axes, the extruder and the Z screw each have a formula. Enclosed, closed-loop machines such as the X2D handle this internally and do not expose these values, but the calculators are good for understanding how the numbers arise and for verifying a DIY machine.
Belt-driven axis
Extruder calibration (measured)
Extruder from hardware
Z lead screw and layer-height steps
E-steps calibration procedure. Heat the nozzle to printing temperature, mark the filament 120 mm above the extruder entry, command 100 mm of extrusion at a slow speed (for example 2 mm/s) and measure how far the mark moved. Enter what you commanded (100) and what you measured (for example 96). Marlin: new e-steps = old × 100 / 96. Klipper: new rotation_distance = old × 96 / 100. Repeat until the result is within ±0.5 mm. After that, calibrate the flow ratio with a printed test, because e-steps only ensure that the gear moves the filament correctly, not that the plastic exits at the right rate.
For an 8 mm lead screw and a 1.8° motor, one full step is 8 / 200 = 0.04 mm. Microstepping interpolates between full steps with reduced holding torque and position accuracy, so layer heights that are multiples of the full-step distance (0.08, 0.12, 0.16, 0.20 mm …) are positioned more repeatably than, say, 0.15 mm. This "magic number" idea is why many printer vendors list their default layer heights in 0.04 or 0.08 mm multiples.
🚀 Multi-color flush and waste estimator
This tool estimates the order of magnitude of waste in a multi-color print from three things you can read off the slicer: the number of color changes, the flush volume per change and the number of prime-tower layers. Bambu Studio calculates the exact flush volumes from a per-color-pair matrix, the wipe/prime tower size and your settings; use its final numbers (shown after slicing) whenever you have them. Treat the output below as a planning aid.
Every time a single nozzle changes color, it must push out the old color until the new one runs pure. That purged plastic goes into a prime tower or purge chute and is lost. Printing many colors on many layers can waste more plastic than the model contains. The Bambu X2D has two nozzles: when consecutive colors are on different nozzles, the machine swaps nozzles instead of purging, which can reduce waste a lot, though not to zero.
Multi-color waste estimator
Where the flush volume comes from. In Bambu Studio the flushing volume depends on the pair of colors: going from a dark color to a light one needs a lot more purge than light to dark, because residue of the old color shows through. The slicer builds a matrix from the colors' brightness and lets you edit each pair. A typical value for similar colors is a few hundred mm³; extreme pairs can need several times as much. Enter your average in the calculator. Tower layers counts only the layers in which at least one color change happens: a model with colors in only the lower half needs a tower only up to there, and many slicers can also wipe into infill or objects to reduce waste.
Group parts by color so that fewer changes occur per layer, assign the two colors that alternate most often to different nozzles, keep the tower small, and let the slicer flush into infill when possible. Read Multi-color & multi-material and Dual-nozzle printing for the strategy, and Bambu Studio settings & profiles for the flush settings.
Reference: the material table
The following table is the single source for density, shrinkage, drying, stiffness, strength and strain values used by the calculators above. These are typical, approximate numbers for printed (not injection-molded) parts, collected from public data sheets and common practice. Brands, colors and additives (carbon fiber, glass fiber, impact modifiers) shift every column, so check your filament's data sheet and prefer your own test results.
Accuracy and assumptions
- Formulas are exact, inputs are not. Geometry formulas (area, beam deflection, steps per millimeter) are exact for ideal shapes. Material properties are typical values with spreads of ±20 % or more.
- Printed parts are anisotropic. Strength along layer lines is much higher than between layers; the beam and snap-fit calculators apply simple knock-down factors instead of a full model.
- Everything is a starting point. Use the results to set up the first attempt, then measure the real part and adjust. The best calculator is a calibrated printer and a caliper.
- Your data stays in your browser. Inputs are saved with
localStorageunder thec3d:calcprefix. Use "Reset to defaults" in each tool to clear them.
Not sure what to print in? Try the Material picker. Want to see why a setting behaves as it does? Open the Visual lab. For practice problems that use these formulas, see the Level 2 exercises.
Key takeaways
- Material mass is density × volume; the same part weighs 20 % less in ABS than in PETG.
- Real print cost includes electricity, machine wear, failures (÷(1 − p)) and your time.
- Flow demand is w × h × v (use the rounded cross-section); keep it at or below roughly 85 % of the tested limit.
- Drying temperature is capped by your dryer: if it cannot reach the ideal temperature, dry longer, or use a hotter dryer for nylon and PC.
- Shrinkage and hole compensation are best measured with a coupon, not copied from a table.
- Snap-fit strain is ε = 1.5 h y / L²; lengthen the beam before you thin it.
- Stiffness grows with the cube of depth: make the part deeper, not wider.
- Flush waste scales with color changes × flush volume plus the tower: group colors and use both nozzles of the X2D.