How to Calculate the Number of M&M's in a Container

Updated on April 16, 2018
CWanamaker profile image

Chris has a Master's degree in engineering and uses his knowledge to write about a variety of topics from an analytical perspective.

A delicious pile of M&M's.
A delicious pile of M&M's.

Have you have wondered how many standard sized M&M's would fit in a container? Perhaps you had the luxury of participating in a contest during your youth where the object was to guess the number of M&M's in a container. How did you fair? What approach did you take to figure it out? Well, there are many approaches to solving this problem. However, the most accurate method will likely involve the use of a formula derived from measurements of M&M's and their packing ratio (the percentage of space M&M's take up in a container).

During my research on the subject I found several derived formulae and many experiments completed by grade school students regarding the number of M&M's that will fit in a container. While many valiant efforts were made to solve this problem only a few people seemed to have computed valid results. One difficulty I encountered was simply finding published values on the mass, volume, and packing ratios of these multi-colored candies.

It also seemed that no scientists or organizations had taken credit for any specific formulas on the subject. Given the lack of sound information I decided to investigate this issue for myself. For me, the best approach was to use the average characteristics of an M&M to develop a simple formula to compute the number of M&M's in a container. I also wanted to compare these results to a simple quart container estimate that someone posted on a blog. And finally, I wanted compare both of these methods to an actual experiment of my doing.

Basic Characteristics of an M&M

American manufacturing processes are a marvel of modern engineering. Even so, there will always be some variability between every item that is produced on an assembly line. In the case of M&M's, the size, shape, and mass of each candy will likely vary to some degree. However, I'm sure that Mars, Incorporated has strict quality control standards and that the variability of these characteristics will likely be very small. With that said, I have scoured the internet to determine what the average value for an M&M's mass, volume, and packing ratio (this relates to the shape) are. The results are below:

Average characteristics of an M&M
Average characteristics of an M&M | Source

Formula For Computing Quantity of M&M's Based on a Container's Volume

I will use the average values shown above to derive a simple formula that can tell you the number of M&M's in a container based on its volume.

where the container's volume (V) is in fluid ounces.

where the container's volume (V) is in milliliters.

A Lone Blogger's Quart M&M Estimate

I once read a blog (now I can't find it to properly cite them) that said exactly 1,011 M&M's would fit into a 1 quart (946ml) container. I am not sure of the context of the measurement but it did seem to have been verified experimentally. Given this information, the Blogger's formula for computing the number of M&Ms in a container would have been:

where the container's volume (V) is in fluid ounces.

where the container's volume (V) is in milliliters.

Pink M&Ms
Pink M&Ms | Source

My Experiment

Formula's and calculations are great, but if they don't accurately predict something then they are useless. Therefore, I wanted to see how good these formulae were at predicting reality. I went to my local candy store and purchased a very large bag of M&M's (my wife made me get pink). First, I selected several different sized containers and measured their volume by carefully seeing how much water they could hold. I filled the shot glass and the old pot to the very top for this experiment. I used the label's reported volume on the gallon jug and on the 9oz Dixie cup. Since I like the metric system better, all my measurements were done in milliliters.

Various containers and their respective volume used in this experiment.
Various containers and their respective volume used in this experiment. | Source

Next, I filled this containers with M&M's and proceeded to count how many each one held. As you can imagine this was a tedious process and there were many M&M casualties.

Results and Comparison to the Calculations

So how did these formula's do when comparing to a real life experiment? Pretty good actually. The table below shows the number of M&M's that can fit in to a variety of container sizes compared to the numbers predicted by the formulae shown above.

Container Volume (ml)
My Experiment
Blogger Formula
My Formula
Shot Glass
9oz Dixie Cup
Large Measuring Cup
Old Pot
1 Gallon Jug
Measured and computed number of M&Ms for various containers.

The graph below shows a visual representation of the information found in the above table.

I recently purchased this King Gumball Machine for my kids. It holds about 5lbs of M&Ms (about 2,350 of them).
I recently purchased this King Gumball Machine for my kids. It holds about 5lbs of M&Ms (about 2,350 of them). | Source

From this information we can draw some very interesting conclusions:

  • The blogger's formula was more accurate than my formula at predicting the number of M&M's
  • The blogger's formula is at most 98.8% accurate for containers of 1 gallon or smaller
  • My formula is at most 98% accurate for containers of 1 gallon or smaller
  • Both formulae computed values within 0.8% of each other for containers of 1 gallon or smaller
  • The larger that the container is, the less accurately the formulae is able to predict the true number of M&M's in the container.
  • The container's shape effects the number of M&M's that it can hold
  • Counting M&M's takes a long time
  • M&M's are delicious

Questions & Answers

© 2013 Christopher Wanamaker


    0 of 8192 characters used
    Post Comment
    • profile image


      12 days ago

      How many regular M&M will fit in a bowl, if a bowl dimensions are-

      height 6.5 inches,

      width (top of bowl) 6.5 inches,

      width(bottom of bowl) 4 inches,

    • profile image

      mr man 

      16 months ago

      What type of M&M did the formula work with?

    • profile image


      19 months ago

      how many M&MS would fit in a jar 9 1/2 CM top, 10 1/3rd length and 11CM Bottom

    • profile image

      Victoria P 

      21 months ago

      In the first part of the equation where did you get 0.0215?

    • Larry Fish profile image

      Larry W Fish 

      2 years ago from Raleigh

      Very interesting and I often wondered how many M&Ms were in a few containers where I saw contests. The times I guessed, I wasn't even close. M&Ms are one of my favorite candies When I go shopping at BJs I buy the 56 ounce bag and tell my wife they are my medicine. It must be right they do make me feel better.

    • profile image

      Sunny Kapoor 

      2 years ago

      I have a cylindrical vase 11.75" high and 4.4" in radius. How many M&m would fit in this vase ?

    • profile image


      2 years ago

      FYI - There was a 2,000 ml mason jar at my daughter's dance studio that was filled just above the 2,000ml mark. Based on this post, we guessed 2,118. We lost. There were 1,971.

    • profile image

      AT Leung 

      3 years ago

      Thank you for a great article. I am scheduled to give a talk about work and play to my son's middle school class and this is very helpful information.

      On another M&M related topic, color distribution, here is another interesting article from a scientist at SAS.

    • profile image


      3 years ago

      How many m&m are in a 2lb 10.0 oz bag?

    • profile image


      3 years ago

      Thank you for posting this article. I literally just won a 43" TV at a work Christmas party because of your math. Cheers!

    • CWanamaker profile imageAUTHOR

      Christopher Wanamaker 

      3 years ago from Arizona

      Hello Brenden,

      I agree with your first and second points - a slight error in wording on my part. However I disagree on your third point because as the container gets larger (and thus the volume gets larger) the equations predict values that are further and further away from the true value (the number of M&M's I counted). I've illustrated this by adding a graph to the article which you can visually see that the distance between the predicted and true value increases as volume increases.

      To answer your last question I simply poured the M&M's into the container to fill it. I did not shake them to make them settle nor did I take any time to place them by hand. Had I done that I would have surely been able to fit more M&M's into the containers.

      Thanks for reading,


    • profile image

      Brendan Harris 

      3 years ago

      It's very possible I'm missing something, but the conclusions of this experiment as written above have some mistakes.

      The second conclusion should read "at most", not least, for 1 gallon or smaller, and 98.7 if we're rounding to the tenths. You might include that it's at least 98.3% accurate, too.

      The third conclusion should read "at most", not least, just as for the second conclusion. You might also include that it's at least 97.6% accurate.

      The fifth conclusion is incorrect, as both tend (though not perfectly) to become more accurate the larger the container.

      I'll take your word on the last conclusion! Actually, I intend to fill an object that I hypothesize will have the greatest experimentally verified packing factor, greater even than the 0.671 that you obtained with the largest container.

      I was drawn to this article as I've always been drawn to numbers, tables, formulas for predicting values and such. I truly appreciate the hard work put into doing this. For the purposes of reproducibility, might you share what technique you used for arranging the M&M's in the containers? By this I mean did you merely drop them in, or was there a settling process used.

    • profile image


      3 years ago

      Nevermind, I see it now.

    • profile image


      3 years ago

      Am I wrong, or do the "blogger" formulas make no sense?

    • CWanamaker profile imageAUTHOR

      Christopher Wanamaker 

      4 years ago from Arizona


      Congratulations, that's pretty awesome! Glad I could help.

    • profile image


      4 years ago

      Thanks. Googled this at the baby shower. Used your values and won. I would upload a pic if you had an option.

      Basically I compared your preset values to the most close shape which was a measuring cup.

      YAy. I won.

      Cool deal


    • the rawspirit profile image

      Robert Morgan 

      4 years ago from Hutchinson Island, FL - Myrtle Beach, SC - Gilbert AZ

      I just wish you had been my math teacher. I would have excelled. Thanks for a great hub. Bobby

    • CWanamaker profile imageAUTHOR

      Christopher Wanamaker 

      5 years ago from Arizona

      I was at a party recently where the host had a jar of M&M's and asked everyone to guess. I came within 10 M&M's but unfortunately did not win. Some lucky gal guessed the exact number!

    • rebeccamealey profile image

      Rebecca Mealey 

      5 years ago from Northeastern Georgia, USA

      "Quesstimation" is an important skill. Love this!

    • Blond Logic profile image

      Mary Wickison 

      5 years ago from Brazil

      This is very interesting. I have seen these questions before, and never knew where to start to calculate it.

      Voted up, and shared.

    • CWanamaker profile imageAUTHOR

      Christopher Wanamaker 

      5 years ago from Arizona

      PDXBuys - I was fortunate enough to have enough extra M&ms to complete the experiment while still eating them haha!

    • PDXBuys profile image


      5 years ago from Oregon

      I could not have done this because my M&M snacking during the experiment would have skewed the results.

    • Anne Harrison profile image

      Anne Harrison 

      5 years ago from Australia

      Love the article - I hope no M&Ms were harmed in the experiment!

    • Romanian profile image


      5 years ago from Oradea, Romania

      I like a lot M&M, and I was curious to know these details.

    • CWanamaker profile imageAUTHOR

      Christopher Wanamaker 

      5 years ago from Arizona

      Eugbug - Yes I chowed down on those M&Ms! I'm sure. A little bit of gentle shaking would probably help pack them down a little more I'm sure.

    • eugbug profile image

      Eugene Brennan 

      5 years ago from Ireland

      "M&M casualties" ? Does that mean you murdered them by eating them!

      Sands settles and packs better when shaken, does this apply to M&Ms?

    • profile image


      5 years ago

      I've never done well at these kinds of guessing games, and I suck at math, so I'll just take your word for it! LOL

    • Adam Lee Andersen profile image


      5 years ago from Overland Park, Kansas

      Lol, awesome. Now I can impress my buddies every time I walk by an M&M dispenser. One question what about M&M'S with Almonds? Oops

    • Millionaire Tips profile image

      Shasta Matova 

      5 years ago from USA

      I'm sorry, I couldn't read any more after I found out that M&Ms had been hurt in your experiments. Congrats on your HOTD, casualties and all. LOL

      This is interesting. They have this contest at work for fund raising purposes, and I usually just make up a number. I'm going to have to take a more scientific approach from now on.

    • DzyMsLizzy profile image

      Liz Elias 

      5 years ago from Oakley, CA

      Congrats on HOTD! Very funny and interesting topic, and so voted.

      I've never done well at these kinds of guessing games, and I suck at math, so I'll just take your word for it! LOL

    • heidithorne profile image

      Heidi Thorne 

      5 years ago from Chicago Area

      Finally, some math we can all appreciate! (Actually, I love these kinds of brain busters.) Very deserving Hub of the Day! Voted up, awesome and sharing with my followers on Twitter & LinkedIn next week!

    • oceansnsunsets profile image


      5 years ago from The Midwest, USA

      What a fun and interesting hub! Thanks for sharing what you found with your own investigation into the subject. There can be times where this could be handy to know. I have seen it done with jellybeans, and the like. It's a fun thing! Good work!

    • PaigSr profile image


      5 years ago from State of Confusion

      Not something that I had thought about before. Usually it was a best guess. And as a side note - bring back the light brown M & M's.

    • mySuccess8 profile image


      5 years ago

      Interesting simplified formula you have derived for this computation, with a sufficiently good accuracy for this purpose. As you have rightly done, one of the critical factors that determine the formula accuracy is the “container shapes and sizes”, that can greatly affect how well or the number of the items (M&M’s) that can be packed into these various-shaped containers. Congrats on Hub of the Day!

      (Note: There seems to be one typo error for the second formula under the section “A Lone Blogger's Quart M&M Estimate”, where the statement “where the container's volume (V) is in fluid ounces” should be “where the container's volume (V) is in milliliters.”)

    • Patsybell profile image

      Patsy Bell Hobson 

      5 years ago from zone 6a, SEMO

      How fun. M&M math. Nice to meet the M&M researcher.

      Voted up, Pinned

    • Sharkye11 profile image

      Jayme Kinsey 

      5 years ago from Oklahoma

      Interesting! I thought it was just a matter of taking a wild guess! Or filling up a similar sized container then counting the M&M's. I've never tried guessing the candy, but I won a lunch once for estimating how many dollars worth of dimes were in a jar. I have more experience with money than candy! Fascinating hub, will share!

    • Arco Hess Designs profile image

      Arco Hess 

      5 years ago from Kansas City, Kansas

      Very interesting. I've seen these contests around town and have often wondered how anyone could possibly get close to the correct answer. Now I know. Math!

    • Frienderal profile image


      6 years ago from Singapore

      Interesting hub! With this formula at hand, I can finally confront interviewers who ask questions like how many M&M's into this container, etc. Thanks!

    • CWanamaker profile imageAUTHOR

      Christopher Wanamaker 

      7 years ago from Arizona

      Hello Calculus-Geometry.

      I found a paper on the University of Delaware's Department of Mathematical Sciences website that stated that the packing ratio of an M&M (spheroid) is 0.685. This was based on the results of a group of students' experiments.

      This does differ from the packing ratios that I calculated from my own experiment which hovered around 0.67. I didn't want to use my own value to derive the formula because I wanted something to compare the results of my experiment to. I also felt that the 0.685 value was more reasonable based on my research. I suspect the difference in results has to do with the type of containers I used as well as the fact the volume of an M&M varies from sample to sample.

      As always, thanks for reading!

    • profile image


      7 years ago

      Cool experiment. From your table it looks like you'll get a good estimate if you use the rule of 1051 - 1055 M&Ms per 1000 mL of volume. By the way, how did you determine the packing ratio of 0.685? Just by experiement, or something mathematical?


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)