Skip to main content
Calcimator

3D Printed Enclosure Calculator

Enclosure dimensions from PCB and component layout.

About this calculator

This calculator sizes a 3D-printed enclosure straight from your PCB's footprint and its tallest component, then estimates filament and print cost from that geometry. It first adds a fixed 1.5mm clearance around the PCB on every side and above the tallest component, then wraps that internal cavity in walls of your specified thickness to get the external length, width, and height. Material use comes from the shell's own volume: it calculates the full external box, subtracts the internal cavity to get the wall volume, then adds a separate lid slab (external footprint times wall thickness) and treats that whole shell as 100% solid PLA (density 1.24 g/cm³) — the Infill % input is not actually used in the underlying math, since a thin shell has no interior infill region to speak of. From that solid volume it derives filament weight, the length of 1.75mm filament needed, and material cost from your price per kg.

Print time is a flat estimate of 15 cm³/hour, a conservative rate for detailed enclosures with lots of small perimeters, and electricity cost assumes a typical 150W printer at $0.12/kWh. The result is a fast first-pass estimate, not a slicer-accurate one: it ignores supports, brims, top/bottom layer counts beyond the single lid pass, and any snap-fit or screw-boss features you might add, all of which add material and time. Treat it as a floor for what you'll actually spend, and pad the wall thickness input if you plan structural mounting points or ventilation cutouts.

Inputs

%

Results

Enclosure Length (mm)

77.8

Enclosure Width (mm)

57.8

Enclosure Height (mm)31.3
Material Weight (g)60.8
Filament Length (m)20.38
Material Cost ($)$1.52
Est. Print Time (min)196.1
Total Cost ($)$1.58
How to Use This Calculator
  1. Enter your PCB length (mm), PCB width (mm), and the height of the tallest component (mm).
  2. Set wall thickness (mm) and infill percentage (%) for the structural properties you need.
  3. Enter filament cost per kg to calculate material cost for the enclosure.
  4. Review external enclosure dimensions, material weight (g), filament length (m), and print cost.

How the result changes with PCB Length (mm)

PCB Length (mm)Enclosure Length (mm)Enclosure Width (mm)
3542.857.8
5360.857.8
105112.857.8
175182.857.8

What each input means

PCB Length (mm)
Length of the circuit board to enclose.
PCB Width (mm)
Width of the circuit board to enclose.
Tallest Component (mm)
Height of the tallest component above the PCB (including connectors, heatsinks).
Wall Thickness (mm)
Enclosure wall thickness (2-3mm typical; use multiples of nozzle width, e.g. 0.4mm).
Infill (%)
Internal fill density for solid sections (20% typical, higher for structural strength).
Filament Cost ($/kg)
Cost per kilogram of filament (PLA ~$20-30/kg, PETG ~$25-35/kg).

What each result means

Enclosure Length (mm)
External length including walls and PCB clearance.
Enclosure Width (mm)
External width including walls and PCB clearance.
Enclosure Height (mm)
External height including top/bottom walls and component clearance.
Material Weight (g)
Estimated PLA filament weight needed.
Filament Length (m)
Length of 1.75mm filament needed.
Material Cost ($)
Filament cost based on weight and price per kg.
Est. Print Time (min)
Estimated FDM print time at typical speed.
Total Cost ($)
Material plus electricity cost.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    PCB Length (mm) = 70, PCB Width (mm) = 50, Tallest Component (mm) = 25, Wall Thickness (mm) = 2.4 = 6 input(s) provided
  2. Calculate Enclosure Length
    Enclosure Length = internalLength + 2 * wallThicknessMm
    77.8 = 77.8
  3. Calculate Enclosure Width
    Enclosure Width = internalWidth + 2 * wallThicknessMm
    57.8 = 57.8
  4. Calculate Enclosure Height
    Enclosure Height = internalHeight + 2 * wallThicknessMm
    31.3 = 31.3
  5. Calculate Material Weight
    Material Weight = volumeCm3 * plaDensity
    60.8 = 60.8

Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why doesn't changing the Infill % input change my results?

The engine treats the entire enclosure shell — walls plus the lid slab — as 100% solid PLA, because a thin printed wall has no meaningful interior region for infill to fill. Infill density only matters for thick solid sections of a print, and this enclosure model doesn't generate any, so the field is collected for future use but never enters the math. If you want a lighter, faster print in your slicer, dropping infill there won't hurt this shell-dominated geometry much anyway, since it's already close to fully solid.

Why is the calculated weight higher than what my slicer predicts?

This calculator assumes the entire shell — all four walls, floor, and a full lid slab at your wall thickness — is solid plastic with no gaps, whereas a real slicer applies perimeter counts and top/bottom layer settings that can be thinner or thicker than a flat wall-thickness assumption, and it accounts for infill patterns in truly thick regions. It also skips supports, brims, and any snap-fit bosses or screw posts you add in CAD, all of which change material use in ways this simplified box model can't see.

Why does the calculator add clearance around the PCB automatically?

It adds a fixed 1.5mm gap on every side of the PCB footprint and above the tallest component before it ever applies wall thickness, since a board wedged tight against the inside of a printed enclosure won't fit once print tolerances and any conformal coating or connector overhang are accounted for. That clearance is fixed at 1.5mm and isn't one of the inputs you can adjust, so if your components have taller connectors than expected, increase the Tallest Component value directly rather than expecting extra headroom elsewhere.

How is the print time estimate calculated, and how reliable is it?

Print time is simply the shell's volume in cm³ divided by a flat 15 cm³/hour, a rate chosen to be conservative for detailed enclosures with lots of small perimeter moves rather than large open infill passes. It doesn't account for your specific printer's speed settings, layer height, or the extra time small features and corners add beyond a straight volumetric rate, so use it as a loose ballpark, not a slicer-accurate time-to-print.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Technology & Computing.