How Do Gears Work? Build a Rack and Pinion STEM Project for Kids

Have you ever wondered how gears work? Gears are everywhere, from bikes and clocks to cars and robots, but it can be tricky for kids to understand what’s really happening when one gear turns another. So, instead of just talking about gears, let’s build something that moves!

For this project, we’re making a simple rack and pinion mechanism, and because a plain old moving bar isn’t nearly as much fun, ours has a little dog that travels along the track when you turn the handle! This is a great STEM activity for grades 4 to 6 that lets kids explore gears, force and motion, measurement, and mechanical engineering while they build and test their own working model.

how do gears work STEM project

Disclaimer: This article may contain commission, paid partnerships, or affiliate links. We independently review everything we recommend. When you buy through our links, we may earn a commission from qualifying purchases.

So, How Do Gears Work?

A gear is a mechanical component with teeth around its edge. When the teeth of two gears fit together (engineers say they “mesh”), turning one gear pushes on the teeth of the other and makes it turn too. That’s how gears pass motion and force from one part of a machine to another.

But what happens when we want to change rotational (round and round) motion into straight-line motion? That’s where a rack and pinion comes in.

What Is the Difference Between a Rack and a Pinion?

  • The pinion is the small circular gear.
  • The rack is a straight bar with teeth that fit into the teeth of the pinion.

When we turn the pinion, its teeth push against the teeth on the rack, making the rack move in a straight line. And that’s the clever bit! Instead of the movement simply going round and round, we’ve changed rotational motion into linear motion.

Ready to build your own rack and pinion? Let’s gather our materials and tools and get started!

the difference between a rack and pinion

Materials and Tools

  • Rack and pinion gears templates (download the template below!)
  • Recycled shipping boxes (single-flute cardboard)
  • Small piece of single-face cardboard
  • Sandpaper
  • Ruler
  • Craft knife
  • Scissors
  • Side cutters
  • Hole punch
  • 1 x 5 mm wooden skewer
  • 3 x 2 mm wooden skewers
  • 6 mm paper straw
  • 18 mm wooden bead
  • Awl
  • Pencil
  • Eraser
  • Wood glue
  • Super glue
  • Glue gun
  • Water-activated brown paper tape (optional)
  • Paint in all colors
how do gears work project materials

Safety note: The craft knife, awl, side cutters, super glue, and glue gun should be used by an adult or with close adult supervision.

You can get the rack and pinion gears templates for free below:

Download the Rack & Pinion Templates

    We respect your privacy. Unsubscribe at anytime.

    Build Instructions

    Now let’s build it! Follow the steps below (with the video) to put your rack and pinion together and get your little dog moving.

    This video may be used as a visual example so that the students get the hang of how the project is done. Let them try it on their own or watch and follow along. If you cannot see the video, visit our YouTube Channel here.

    Step 1: Cut Out and Glue the Pieces (Wood Glue)

    1. Print all the template pages on cardstock and cut out all the pieces.
    2. Trace the pieces onto the cardboard and cut them out with a craft knife (each piece tells you how many need to be traced and cut).
    3. Glue the layers together and set them aside to dry. Put something heavy on top to keep them flat.

    Special tips: Always keep your fingers away from the blade, and ask an adult for help with cutting. Place all the long edges of the templates along the fluted edge of the cardboard. This makes your build stronger!

    where to place the template

    Step 2: Build the Base (Glue Gun)

    1. Put the largest piece (15 x 25 cm) in front of you and use the glue gun to stick the two small side pieces (4 x 2.5 cm) onto the bottom left and right sides.
    2. Stick the bottom piece (3.3 x 24 cm) between the two small pieces.
    3. Stick the last long piece (2.5 x 24 cm) on the front of all the pieces you just attached, creating a shallow trough for the rack to sit in.

    Special tip: Trim any edges that need it to keep everything square.

    Step 3: Add the Gear “Teeth” to the Rack and Pinion (Wood Glue)

    1. Cut a piece of single-face cardboard that fits exactly on top of the rack piece you glued together, with the holes of the fluting visible along the long side. This is the rack, which moves in a straight line (linear motion).
    2. Glue the single-face cardboard onto the rack piece.
    3. Measure the thickness of the dog’s head and cut a piece of single-face cardboard that covers the bottom curve of its face (with the holes of the fluting facing the front), then glue it on. This is the pinion, which turns in a circle (rotational motion).

    Special tip: When they’re dry, gently roll the dog’s head across the rack. Amazing, it works just like gears!

    Step 4: Reinforce the Gear Teeth (Wood Glue)

    1. Measure the length of the fluting on both the rack and the pinion, then use the side cutters to cut enough pieces of the 2 mm skewers to fill all the “teeth.”
    2. Squeeze a little glue into a few holes at a time and push the skewer pieces in until they’re all filled.
    3. Use wood glue to fill the holes so the skewers can’t fall out, and smooth the glue on both sides with your fingers.

    Special tip: Don’t get glue on top of the single-face cardboard. We want a smooth surface so the pinion can move the rack from left to right.

    Step 5: Cover the Edges (Optional)

    To make the edges look neat, I covered them all with water-activated brown paper tape. This step is optional, so go ahead and do it now if you have the tape.

    Step 6: Assemble the Pinion (Wood Glue)

    1. Take the smaller circle you glued together and push the 5 mm skewer through the hole in the middle.
    2. With the skewer still in place, put wood glue on the underside of the circle and stick it to either side of the pinion. Lay it flat on your work surface, remove the skewer, and set it aside to dry.

    Step 7: Find the Correct Position for the Pinion

    Special tip: This is a very important step, because the rack and pinion must connect perfectly for the motion to be smooth!

    1. Place the rack in the trough at the bottom of the base and move it to the center.
    2. Push the skewer through the front of the pinion so the side with the circle faces the back board and the point of the skewer just peeks out the back.
    3. This is the most important move of the whole project: gently lower the pinion onto the rack so the teeth fit together perfectly and snugly.
    4. With both the rack and pinion centered on the base, gently push the point of the skewer into the back piece, making a hole all the way through for the pinion’s permanent position.
    5. Remove the skewer and sand its flat end on sandpaper. It must be flat.

    Step 8: Finish the Pinion (Wood Glue)

    1. Push the skewer through the pinion from back to front, with the flat end coming out the front.
    2. Put glue on the back of the oval piece around the hole (and a little inside the hole), stick it to the front of the dog’s face in the correct position, and remove the skewer.
    3. Put glue into the hole of the circle on the back of the pinion.
    4. Push the skewer through the pinion from back to front, flat end first, and let it dry for at least 10 minutes.

    Step 9: Test the Motion

    1. Push the pinion’s skewer through the hole in the back of the base so the pinion rests comfortably on the rack with its circle touching the back piece.
    2. Gently turn the skewer left and right to check that the motion is smooth.

    Special tip: This is the time to make any adjustments, before you glue everything permanently and paint your project!

    Step 10: Paint All the Pieces

    This step must be done before the final assembly! If you’re happy with the motion, get out your paints and bring your rack and pinion to life with color. Use the photo below as a guide for the dog’s face template, or draw your own.

    Step 11: Final Assembly (Super Glue and Glue Gun)

    1. Cut a 2.5 cm piece of straw.
    2. Push the straw through the hole in the back wall so the same amount sticks out on each side.
    3. Use super glue around the outside of the straw on the front and back to hold it in the hole.
    4. Push the pinion’s skewer through the straw to the back, making sure the rack is centered, the pinion sits comfortably on the rack, and the circle on the back of the pinion is right up against the straw.
    5. Push the larger circle onto the skewer at the back of the base, right up against the straw.
    6. Push the bead up against the circle and mark the skewer where you’ll cut it.
    7. Remove the whole pinion, cut the skewer, and sand the cut end flat.
    8. Put the pinion back through the hole.
    9. Put hot glue around the outside of the hole on the larger circle, then quickly push it onto the skewer and against the straw. Hold for a few seconds. (Don’t get glue into the hole; it should only stick to the straw’s edge.)
    10. Put a few drops of super glue into the hole around the skewer.
    11. Add some hot glue to the end of the skewer and push the bead on, up against the circle. The extra glue will ooze out and attach it to the circle. Hold for a few seconds.
    12. Finally, use a marker or paint in the same color as the bead to cover the end of the skewer.

    Your amazing rack and pinion is complete!

    Watch the Dog Move!

    Turn the handle and watch the little dog travel along the track. Now turn the handle in the opposite direction. What happens? The dog moves back again!

    This gives kids a really simple way to see something that can otherwise feel abstract. The circular movement of the pinion is transferred to the rack, which moves backward and forward in a straight line. Let’s investigate this engineering feat a little further! Ask students:

    • How far does the rack move after one complete turn of the pinion?
    • What happens when we turn the pinion in the opposite direction?
    • How many turns does it take the dog to travel a certain distance?
    • What do you think would happen if we used a larger pinion?
    • Why do the teeth need to fit together properly?
    • What happens if the rack and pinion don’t line up correctly?

    This is where a simple building project becomes a real STEM investigation. Kids can predict, test, measure, observe, and improve their design instead of simply following instructions.

    Why Does the Rack Move?

    The teeth are the important part. As the pinion rotates, its teeth push against the teeth on the rack. Because the rack is straight rather than circular, it gets pushed along the track. Change the direction the pinion rotates, and the direction of the rack changes too.

    Here’s a fun math connection: in one full turn, the rack moves forward by one tooth for every tooth on the pinion. That distance is about the same as the pinion’s circumference (π x the diameter). So a bigger pinion moves the rack farther with each turn, but it takes a little more effort to turn.

    It’s a wonderfully simple example of how engineers use mechanical components to control movement, and because kids get to turn the handle themselves, the science is much easier to understand!

    Where Do We Use Rack and Pinion Systems?

    Rack and pinion mechanisms aren’t just for STEM projects. Engineers use them in real-world machines like car steering systems, factory machinery, robotics, and positioning systems. When you turn a car’s steering wheel, a pinion at the end of the steering column moves a rack side to side to turn the wheels!

    Once kids understand how the mechanism works, challenge them to think about what else they could make move with a rack and pinion. Could it open a gate? Move a platform? Push or pull something? Maybe even become part of a little machine or vehicle? That’s the fun part of engineering. Once you understand how something works, you can start thinking about what you could make with it. Our simple machine projects for kids and bird automaton project are great next steps.

    A Little Engineering Challenge

    Don’t expect the first version to work perfectly! If the teeth aren’t meshing properly, the rack might not move smoothly. If something is out of alignment, the mechanism may stick or become hard to turn.

    That’s not a failure. That’s engineering! Give students a chance to figure out what’s wrong, make changes, and test whether the movement improves. They can also:

    • Measure the motion: Mark a starting point and measure how far the rack travels per pinion rotation.
    • Create a data table: Record the number of rotations and the distance traveled, then look for a pattern.
    • Compare with the math: Measure the pinion’s diameter, calculate its circumference, and compare it to the distance traveled in one turn.
    • Add a load: Can the mechanism push or pull a small object?

    Love mechanical builds? Try more mechanical engineering for kids with our da Vinci inspired projects.

    Frequently Asked Questions

    What is a gear?

    A gear is a toothed mechanical component that works with another toothed component to transfer motion and force. Gears can change the speed, direction, or strength of a movement, which is why they’re found in everything from clocks to bicycles.

    How do gears work for kids?

    Gears work when their teeth mesh together, so movement from one gear causes another component to move. When one gear turns, its teeth push on the teeth of the next gear, and that gear turns in the opposite direction.

    What is a rack and pinion?

    A rack and pinion is a mechanism made of a circular pinion gear that engages with a straight toothed rack. The pinion turns, and the rack slides.

    How does a rack and pinion work?

    Turning the pinion moves the rack in a straight line, converting rotational motion into linear motion. Reversing the direction of the pinion reverses the direction of the rack.

    What type of motion does a rack and pinion create?

    A rack and pinion converts the rotational motion of the pinion into linear motion of the rack. It can also work the other way around: pushing the rack will make the pinion spin.

    Where are rack and pinion gears used?

    Rack and pinion mechanisms are used in applications including steering systems, machinery, robotics, and positioning systems. Car steering is the most familiar example.

    Is a rack and pinion a simple machine?

    A rack and pinion is a mechanical gear system that can be explored alongside simple machines when studying how mechanisms transfer force and motion. Gears are often taught as a variation of the wheel and axle.

    We hope you enjoyed this amazing project and will be back for more! Share a photo of your rack and pinion in action in the comments.