If you’re a regular follower of Frugal Fun for Boys and Girls, you’ve probably seen our popular LEGO® candy dispenser. It dispenses a little handful of M&M’s or something similar, and it has been a top favorite project on our site.  Well, for this year’s candy consumption season, we’ve got a new project for you!  Turn the handle, and this LEGO® candy machine dispenses one Starburst at a time.  Or build a version that dispenses little chocolate bars.  SO MUCH FUN.  The mechanism is simple, and it’s a neat little engineering lesson.

This machine is so satisfying to use.  Build the candy chamber larger if you’d like!  Our version holds 8 Starbursts, but you can easily make the candy tower taller.

A big thanks to our friend Shawn who developed the design for this candy dispenser.  It’s a very clever mechanism.

Want to see how it works?

Throughout the post, there are links to the key parts on Brick Link so that you can order what you need.

This post also contains Amazon affiliate links.

I can’t decide which version I like better. I prefer to eat the chocolate bars, but I do love how cute that little Starburst machine is.

Ready to Build One?

The exact design for your machine will need to be based around the size of the candy you are using. Starbursts are 3 studs by 3 studs, and the chocolate bars are 4 studs by 6 studs. I’m sure there are other candies that work, and you’ll just need to adjust the design to accommodate the candy size.

Step 1:  Build the base.  The blue and gray base is 10 studs by 16 studs.  There are two layers of yellow bricks on top of the base. Then each side has a 2 x 12 plate and a 2 x 8 plate.  The height of these sides is important.

Use tiles to make a path for the candy machine mechanism to slide on.  Ours is 3 studs by 12 studs.

Step 2:  Build the arm that will push the candy out.

The important pieces here are the gear racks.  If you don’t have these, it’s totally worth ordering a few from Brick Link or Lego.com.  In a minute, we’ll add a gear which stays in one place. As it turns, it slides the gear rack forward and backward, which pushes the candy out.

Note – if you don’t have the gear racks, I have a variation below that uses basic 1 x 2 grills (those ones that everyone has a million of).

Step 3:  The arm should be able to slide on top of the tiles.  We left a one stud opening in the back of our machine to accommodate the arm sliding backwards.

Step 4:  Now add the gear mechanism.  The bricks shown in this step are a Technic x-shaped axle (6 studs long), a 40 tooth gear, two 1 x 6 Technic bricks, one Technic bush.  The handle is a Technic 1 x 3 liftarm with two axle holes and a pin.

The axle goes through the handle, then the Technic brick, then the bush, then the gear, then the other Technic brick.

Step 5:  Add yellow bricks to make the opening where the candy will come out.  Each side has two 1 x 4 bricks.  Then (from left to right) there is a 1 x 3 plate, a 1 x 4 plate (across the front), and a 1 x 4 plate.  There is a 1 x 3 plate attached to the underside of the front 1 x 4 plate.

Note that the center bar and the right side (right side of the photo) are not yet attached to each other.

Step 6:  Add a 1 x 6 gray brick and a 1 x 3 gray brick.

Step 7:   Add yellow plates to the back.  It’s time to start covering the working mechanism.

Step 8:  Add layers of yellow bricks until you can cover the top of the machine with a large plate (and not bump the gear).

Build a wall for the back of the candy chamber.  Ours is 7 studs long.

Step 9:  I wanted to be able to see the candy, so we used clear bricks and clear panels.  Windows aren’t the best because the candy will catch on the edges and won’t drop down the way you want it to.

Clear pieces used – 1 x 2 clear bricks, 1 x 4 x 3 clear panels (choose color trans-clear), 1 x 1 clear bricks.

Step 10:  Fill the candy chamber and attach a 4 x 6 plate for the roof.

When you turn the handle, it will push a candy out.  Then when you turn the handle down again, the arm will slide backwards and allow another candy to drop down.  Then you can dispense that one!


Don’t have the gear racks?  Here’s a way to build this with parts that everyone should have.  Okay, you might not have the gears, and those are absolutely necessary.  But instead of the gear racks, try using grills.  I will say, though, that the gear racks do work better. If you are doing this with a LEGO® club or a STEM club, I would order the gear racks.  If you’re building this on a rainy day and don’t have all the parts – try the grills!

I modified the candy pushing arm as shown below.  I also had to adjust the inside of the machine a little since the first arm was only one stud wide in the back.

The teeth of the gear fit into the grills and slide the pushing arm.  Our friend came up with this idea, and it’s quite clever.

Now, please note that it’s impossible to get the gear at the perfect height above the grills. We tinkered with it for a long time, and the perfect height would be 1/2 plate higher, as in half the thickness of a plate (plates are flat bricks).  Since that’s not possible, it’s either a tight fit or no fit at all!  So we went with the tight fit.  You’ll need to replace the handle with another 40 tooth gear. You can turn the gear to operate the machine, and it provides more torque than that handle so that it can overcome the friction of the tight fit.

Adapt the design for different types of candy!  This machine has a 4 x 6 candy chamber to accommodate little Hershey bars. Yum!

Printable Instructions

I’ve had requests for printable instructions, so I’m trying something new!

You can build the project from the instructions in this post, or download a printer friendly PDF version for $1. The printable pages will fit in a 3 ring binder (I’d recommend page protectors). Please let me know if you like this idea!  I can go back and re-format old posts this way so that kids can collect our instructions. I think it will also be useful for LEGO® clubs, library programs, classroom use, etc.

Click the “add to cart” button below to purchase the printable instructions. Please note that they are the same as the instructions in this post, just in a printable form.  You will receive a digital file to either view on your computer or print.

Add to Cart
If you want more LEGO® ideas, check out our books!

Both books are packed with LEGO® building ideas!  Don’t just keep buying more sets – inspire new creativity with the bricks you already have.

Epic LEGO® Adventures with Bricks You Already Have

Awesome LEGO® Creations with Bricks You Already Have


Post a Comment
  1. cherrycupcake Oct 7, 2017

    Thank you for sharing your incredible creation with us! I ♥️ it!

  2. Sadie Feb 18, 2018

    I love your candy dispenser ideas but they all seem to require parts that I don’t have. Can you make a design that has only basic parts?

    1. Sarah Feb 20, 2018

      Well, the problem with using only basic parts is that it would be hard to create a functional machine. I always try to make projects that work well but use the most common pieces that I can.

      1. Shawn Privett May 18, 2020

        actually, if you are referring to the flat gear rack thingie mabobers you can use a long plate and put the one by two flat pieces with the grooves in it and have them on every other stud on top of a regular one by two plate. that should act the same way as a gear rack. If I could paste pictures I would have an example but I hope this can work. This was how I did it when I was designing the dispenser for Mrs.Dees. ;)

  3. Rita Livengood Jun 21, 2018

    I just took screen shots of the instructions, then at the end saw that I could get a printed version . I love this idea! I would, will, gladly pay the most reasonable charge too. I don't have a printer, only an iPad , but I could go to the library . I bought two of your books for my grandsons for Christmas, then decided to give them one and keep one here! They are coming tomorrow and I was looking for something for us to do.. Thank you so VERY much for sharing your inspiring ideas. We may make the pinball machine first, that is what I was looking for. We love your books! Thanks again!

  4. Amy Lee Jun 24, 2018

    I loved making the starburst candy dispenser for my son! I was able to buy the parts I was missing (the gear, gear racks and lift arm for $2.97, $5.96 with shipping on eBay).

    The 2 minor adjustments I had were that I made my base 10x17 studs so there would be an even 7 studs on each side (I’m neurotic like that) and I ended up using transparent beam columns for the window.

    I must say, I’m jealous you have enough of one color for these projects. I also made your skittles candy dispenser which ended up being red and light grey and this one ended up being yellow, light grey and dark grey. Maybe I should have just made both light grey.

    I’m also a mom of just boys (though only one guy, singular) and we both enjoy playing with his legos!

  5. Jennifer James Aug 23, 2018

    Do you happen to have a list of 'bricks' needed. With lego brick number and qty. I started to extract a list from the instructions, but was a little lost with some regarding qty, etc. I'm going to put kits together for my grandsons birthday party, so each boy can build his own. It would be really helpful if you have a list. Thanks!

    Super cute idea!

  6. Cassandra Mar 19, 2020

    I'm a kid but this idea is awesome! I had to modify it a bit though, as i did not have some pieces that were required. Stiill, this is amaze! Chocolate is sooo yum

  7. Julia Bojarcik Oct 31, 2020

    Hi! I love the candy machine. I like the idea of purchasing the instructions. Is a parts list included with the purchased instructions? If so, it is well worth it. Thanks!

  8. Amanda Aug 18, 2022

    I totally made this and I didn't have enough of the gear... i had one 10 groove gear part and then used 2 plates with grooves in it to accommodate. I had to fool with it a while but eventually go the result adjusting sizes as I went. It's such a fun hit at my place now. I think it took about 17 troubleshoots to get it working haha. I'm a newbie. I love Lego and my 2 boys as well. Thanks for this.


Post a Comment