Please enable JavaScript to use CodeHS

STEM Series / Making

How Do 3D Printers Work?

From digital model to real object

A 3D printer builds things by stacking thin layers of melted plastic. One layer at a time, a shape on a screen becomes something you can hold. Slice a model yourself, then test your instincts on shapes that print well and shapes that collapse.

Robotics + Making ~25 min Beginner friendly
The Big Idea

Build it up, don't carve it away

Think about how a wooden chess piece is made. A worker starts with a block of wood and cuts away everything that is not the piece. That is called subtractive manufacturing. You start with too much material and take the extra away.

A 3D printer does the opposite. It starts with nothing and adds plastic only where the object needs it. That is called additive manufacturing. Both pictures below are making the same bottle shape. Press play, or drag the slider, and watch how each one works.

Subtractive: carve it

Cut away what you do not need.

Additive: print it

Add only what you do need.

0%of the block turned into scraps (in this drawing)
Close to 0%wasted, except for any supports you add

Real life is not this tidy. Carving shops often recycle their scraps, and printing can have waste too, such as supports and failed prints.

Subtractive

Start big, remove material. Examples: carving wood, cutting metal on a mill, or turning a bowl on a lathe. Great for strong, smooth parts made in large numbers.

Additive

Start with nothing, add material. Examples: 3D printing plastic, resin, or metal powder. Great for one-of-a-kind parts and shapes that are hollow or twisty inside.

Why people like additive: you can print a single custom part without making special tools, and you can build shapes that would be very hard to carve, like a ball with a smaller ball trapped inside. The trade-off is that printing a big object can take hours.


The Pipeline

From idea to object

A printer cannot read your mind, or even a picture. It needs a chain of files. Each file is more detailed than the one before it. Click each step to see what happens and what the file looks like.

no file yet: a sketch and measurements

1. Start with an idea

Every print starts with a need. Maybe you want a phone stand, a gear for a robot, or a chess piece. Sketch it on paper. Measure the thing it has to fit.

Good questions to ask now: How big should it be? How strong does it need to be? Which side can lie flat on the printer bed? (That last question matters a lot, as you will see.)


Under the Hood

Inside a filament printer

The most common printers in homes and schools are FDM printers. FDM means fused deposition modeling, which is a fancy way to say "melt plastic and lay it down." They use filament: plastic that looks like a long, thin string (usually about 1.75 mm thick) wound onto a spool.

Tap a part in the picture, or pick it from the list, to learn what it does.

Hot: do not touch

Filament spool

Simplified drawing. Real printers come in different layouts: on some the bed moves back and forth instead of the nozzle.

Safety first. The nozzle and the bed can get hot enough to burn skin, and they stay hot for a while after a print. Do not touch them while the printer is on or just after it stops. Keep hair, sleeves, and cords away from moving parts. Use the printer in a room with good airflow, because melting plastic can give off fumes, especially some materials like ABS. Ask an adult to supervise, and follow your printer's manual.

FDM (filament) printers

What this page focuses on. Melted plastic comes out of a nozzle. Low cost, many materials, and the most common kind in classrooms.

Resin printers: another kind

These use a tank of liquid resin that hardens when light shines on it, one thin layer at a time. They can capture very fine detail, but the resin is messy, so you need gloves, washing, and good ventilation.


Interactive Lab

Slicer lab: cut a model into layers

You are the slicer now. Pick a model and change three settings. Watch how the number of layers, the print time, and the inside of the object change.

Layer height

How thick each layer is, in millimeters. Thin layers look smooth but need many more layers, so they take longer.

Infill

What fills the inside of the object. 0% is hollow, 100% is solid. Most prints use a light pattern, around 10 to 25%.

Support

A thin, temporary structure printed under parts that stick out too far. You break it off after printing.

Slicer simulator

Layers30060 mm tall / 0.20 mm
Print timeabout 1 hvery rough guess, not including heat-up
Plasticabout 10 grough guess, PLA
SupportsNone needed
Side view, cut in half. The bright line is the layer being printed.
  • Solid wall and skin
  • Infill
  • Support
  • Current layer
Top-down view of this layer.
Close-up of the edge.
Model

Thin = smooth but slow. Thick = fast but you can see steps.

Look at the top-down view to see the pattern get denser.

Supports appear under parts that lean out more than about 45 degrees.

Try these experiments

  1. Pick Ring and slide the layer height from 0.1 to 0.4 mm. Watch the layer count drop and the steps in the close-up get taller. Fewer layers means a faster print.
  2. Pick House, turn on Show supports, and scrub down to the layer just under the roof edges. The roof sticks out past the walls, so plastic would have nothing to sit on without supports.
  3. Pick Vase and slide infill from 0% to 100%. Nothing changes much on the side wall. Why? A vase is a thin shell with an empty middle, so there is almost no inside to fill.

The time and plastic numbers are rough estimates from a simple formula. Real printers and slicers also slow down for corners, change speed for outer walls, and add extra moves, so real times are often longer.


The Golden Rule

Overhangs: why layers need something under them

Each new layer needs a layer below to rest on. A overhang is a part of the model that sticks out over empty space. A small lean is fine, because each layer sits mostly on the one under it. A big lean is a problem, because the hot plastic has nothing to hold it and droops.

A common rule of thumb: an overhang that leans out more than about 45 degrees from straight up usually needs support. The exact limit depends on the printer, the plastic, and the cooling.

20°
Gentle leanPrints fine. Most of each layer sits on the one below.
45°
Right at the limitOften works, but the underside can look rough.
support
Straight out (90°)Needs support, or flip the model so the shelf is not hanging.

Supports have a cost. They use extra plastic and time, and they leave rough marks where they touch the model. So smart makers try to reorient a model first: turn it so that fewer parts hang in the air. Your turn.


Game

Will it print?

Each shape below sits on the printer bed exactly as drawn. For each one, decide what to do: print it as-is, add supports, or reorient it (flip or turn it before printing). You can change your answer to see what happens.

0 of 5 answered

12 mm

1. The short bridge

Two towers joined by a flat top. The gap between the towers is about 12 mm.

2. The shelf

A post with a wide bar sticking out on top, like the letter T. The bar juts straight out sideways, a 90 degree overhang.

3. The thin tower

A square tower only 3 mm wide and 60 mm tall. You want it to be sturdy.

4. The cube

A plain cube, 20 mm on each side, with a flat bottom.

5. The ball

A solid ball about 25 mm across, resting on the bed.


Materials

What do printers print with?

Most filament printers use plastic that softens when heated and hardens when cooled. Different plastics behave differently. Here is how four popular ones compare.

General patterns only. Brands, settings, and printers change the results, so always check the label on your spool.
FilamentStrengthFlexibilityEase of printingOften used for
PLApolylactic acid
Medium
Low, stiff
Easiest
Models, prototypes, school projectsOften made from plant starch. It can soften in a hot car.
PETGa PET plastic
Good
Some give
Fairly easy
Sturdy parts, brackets, coversCan leave thin strings of plastic if settings are off.
ABSacrylonitrile butadiene styrene
Good
Some give
Harder
Tough parts that get knocked or warmTends to warp and gives off strong fumes, so it needs an enclosure and good ventilation. LEGO bricks are ABS, though they are molded, not printed.
TPUthermoplastic polyurethane
Tough, tear-resistant
Very flexible
Harder
Phone cases, bike grips, bendy partsSquishy filament can jam in some printers, so it usually prints slowly.

If you are just starting out, PLA is the usual first choice. It is forgiving, and it is easy to print with.


In the Real World

What do people make with 3D printers?

Prosthetics

Volunteer groups and companies design printable hands and arms. Printing makes it easier to build a custom fit, and to make a new, larger one as a child grows.

Rockets

Some rocket companies print engine parts, often in metal using a different kind of printer. One printed part can replace many pieces that would otherwise be joined together.

Houses

Builders have used giant printers that squeeze out a concrete-like mix, layer by layer, to make walls. Most are still test projects, and people add the roof, wiring, and plumbing.

School projects

Print a gear for a robot, a case for a circuit, a custom game piece, or a model of your own CAD design. It is a fast way to test an idea.

Repair parts

A snapped knob or a cracked battery cover can sometimes be replaced with a printed copy. Check that the plastic is strong enough, and keep printed parts away from anything safety-critical.

Models and practice

Doctors sometimes practice on printed models of a patient's bones or organs, and architects print small models of buildings to show clients.


Careers

Jobs that use 3D printing

You do not have to be a "printer person" to use this skill. Many jobs use 3D printing as one tool among many:

Mechanical engineer

Designs parts and machines, and prints prototypes to test them before making many.

Industrial designer

Shapes the look and feel of products, from headphones to chairs, with quick printed models.

Biomedical engineer

Helps design medical tools, implants, and prosthetics that fit real bodies.

Prosthetist

Fits artificial limbs to patients, sometimes using printed parts.

Manufacturing technician

Runs and fixes printers in factories that make parts for planes, cars, and more.

Architect or builder

Prints scale models, and in some projects works on printed building walls.

Good first steps: learn a CAD program, practice measuring, and join a robotics or maker club. A CAD design plus a few test prints teaches you more than any one tutorial can. Want to keep going with programming too? Explore CodeHS courses.


Quick Answers

Quick answers

How does a 3D printer work?

A common home or school 3D printer melts plastic filament in a hot nozzle and draws a thin line of it onto a bed. It draws one flat layer, moves up a tiny step, and draws the next layer on top. After hundreds of layers, the layers add up to a solid object.

What is the difference between additive and subtractive manufacturing?

Subtractive manufacturing starts with a block and cuts material away, like carving wood or milling metal. Additive manufacturing, which includes 3D printing, builds an object by adding material only where it is needed. Additive methods usually waste less material, but they can be slower for large batches.

What is a slicer, and what is G-code?

A slicer is a program that cuts a 3D model into flat layers and plans the path the nozzle will follow. It saves that plan as G-code, a text file of simple commands such as heat the nozzle, move to a spot, and push out some filament. The printer reads the G-code one line at a time.

Why do some 3D prints need supports?

Each layer needs something underneath to rest on. When part of a model sticks out sideways at a steep angle, often more than about 45 degrees from vertical, the new plastic has nothing under it and can droop. Supports are thin temporary structures that hold the overhang up and are removed after printing.

How long does a 3D print take?

It depends on the size, layer height, infill, and printer speed. A small keychain might print in under an hour, while a large or very detailed object can take many hours or more than a day. Thinner layers give smoother surfaces but take longer.

Is it safe to use a 3D printer at school?

It can be safe with basic rules. The nozzle and bed get hot enough to burn skin, so never touch them while the printer is on or just after. Use the printer in a ventilated space, follow the instructions for your printer and material, and ask an adult to supervise.


Check Yourself

Quick quiz

1. What does a slicer do?

2. You halve the layer height, say from 0.4 mm to 0.2 mm. What happens?

3. A model has a flat shelf that sticks straight out sideways in mid-air. What is the smartest first move?

Keep learning

You know how a model becomes layers and why overhangs need help. Next, meet the machines that move on their own, or learn how 3D shapes are described to a computer.

Related: Three.js: Position, Rotation, and Scale