7 Food and Drink Hacks Based on Math and Science

The kitchen is a great place to apply the principles you learned in school in real life. Ever wonder how you can keep a day-old cake from drying out? Or how to slice your bagel for optimal cream cheese coverage? Some of the hungriest minds in the fields of math and science have got your back.


Leftover birthday cake should be one of life’s greatest pleasures, but instead it becomes vulnerable to moisture-zapping air the moment you slice into it. Fortunately, this problem can be avoided with some simple geometry. In the video above, mathematician Alex Bellos outlines an alternative cake-cutting method he found in a 1906 issue of Nature magazine written by Sir Francis Galton. Rather than eating away at a round cake one wedge at a time, he suggests cutting one big sliver spanning the cake’s diameter. The center cut means that instead of having a giant exposed area that will dry out two future slices of cake at once, one rubber band can be used to hold the pieces together, exposing none of the soft interior to the air. This keeps the interior nice and moist until the cake is ready to be sliced into again (although it should be noted—rubberbanding a frosted cake rather than the fondant-covered ones shown in the video could get really messy really fast).


As long as ketchup has been packaged in glass bottles, diners have struggled to set it free. If you’ve ever been the victim of a flash ketchup flood after minutes of fruitless shaking, you can blame physics. Ketchup is a non-Newtonian fluid, which in this case means it behaves like a solid sometimes (like when it refuses to leave its bottle) and like a liquid other times (when it all comes pouring out at once).

According to Heinz’s team of scientists, ketchup is meant to flow at 147.84 feet per hour, so hitting the bottle with full force isn’t your best bet. Anthony Stickland of the University of Melbourne's School of Engineering instead recommends doing the majority of the work while the cap’s still secure. On the University’s website he instructs readers to “briefly invoke your inner paint shaker” and evenly distribute the solid particles throughout the bottle. Next, with the cap still on, flip the container upside down and thrust the contents towards the neck. After that you’re ready to get the ketchup on your plate: Remove the cap and use one hand to aim the bottle at the plate at a 45 degree angle while gently tapping the bottom with the other, tapping harder and harder until you find the correct strength for that particular ketchup. If you still can’t get the hang of it after all that, perhaps a plastic squeeze bottle is more your style.


In math, a möbius strip is a twisting, continuous plane that has one surface and one edge. The shape has a handful of practical uses in the real world, like achieving optimal bagel-to-schmear ratio. Research professor and mathematical sculptor George Hart came up with this ingenious application several years ago. To produce the perfect cut, he makes four separate incisions into a bagel after first marking the key points with a food-safe marker for guidance. The final result pulls apart into two separate halves linked together like a chain. In addition to the impressive presentation, the möbius bagel offers more surface area for spreading. Now you can get more cream cheese on your bagel without slathering it on in gobs.


Dunking biscuits in tea is a popular British pastime, but it comes at a price: a mug full of sad, soggy crumbs. Scientists at the University of Bristol in England offered a solution to this problem in the late 1990s in the form of a mathematical formula. Instead of turning the cookie sideways, the researchers recommend dipping it into the tea broad-size first. Once the bottom surface is sufficiently moist, dunkers should flip the biscuit 180 degrees to allow the dry side to support the wet one. Apparently the snack is worth the effort: According to the study, biscuits are up to 10 times more flavorful dunked than dry.


Joel Haddley via Wikimedia Commons // CC BY-SA 4.0

Slicing a pizza into wedges works well enough at first, but there will inevitably be at least one person who wants only cheesy goodness and tosses the crust, while another person just can’t get enough crust. In 2016, researchers at the University of Liverpool proposed a brilliant alternative: dividing the pie into manageable, equal-sized pieces according to the monohedral disc tiling formula.

The basic design produces 12 slices. To start, the server slices the pie end-to-end along a curving path. They do this three times to create six, claw-shaped slices, then they cut each slice in half at an angle to make the full 12. Instead of floppy, skinny slivers, diners have their pick of funky-shaped pieces from any part of the pizza. In their study [PDF], researchers demonstrate how this concept can be taken even further. As long as the shapes have an odd number of sides, the monohedral disc tiling method can theoretically go on forever (though the authors specify that nine-sided slices are where things start to get impractical. You may want to spring for a second pie at that point).


Many people have their own ideas of what constitutes an excellent grilled cheese, but the Royal Society of Chemistry's recipe is based on science. In 2013, they teamed up with the British Cheese Board to devise a formula for the optimal cheese on toast. Society science executive Ruth Neale said in a press release:

"As the result of tests we carried out in our Chemistry Centre kitchen, we found that the perfect slice can be made by melting 50 grams of sliced hard cheese, such as cheddar, on a slice of white bread, 10 millimeters thick, under the grill. The cheese on toast should sit at a distance of 18 centimeters from the heat source [...] and needs to cook for four minutes to achieve the perfect consistency and taste.”

The full equation, which includes variables for bread thickness and cheese mass, is available on the Royal Society of Chemistry’s website.


Whipping up a meal based on complex algorithms can be exhausting. If you plan to reward yourself with a glass of post-dinner bubbly, just make sure to serve it the correct way. According to scientists from the University of Reims in France, that means pouring champagne into a tilted glass the same way you’d pour a pint of beer. Those effervescent CO2 bubbles that make champagne so pleasant to drink are also clamoring to escape into the atmosphere the moment you pop the cork. Their study published in the Journal of Agricultural and Food Chemistry suggests pouring your beverage at an angle to retain as many bubbles as possible. This method is less turbulent than pouring liquid into an upright glass, thus giving the carbon dioxide less opportunity to break free. To maximize the amount of bubbles per glass, the researchers also recommend chilling the champagne before serving.

10 of the Most Popular Portable Bluetooth Speakers on Amazon


As convenient as smartphones and tablets are, they don’t necessarily offer the best sound quality. But a well-built portable speaker can fill that need. And whether you’re looking for a speaker to use in the shower or a device to take on a long camping trip, these bestselling models from Amazon have you covered.

1. OontZ Angle 3 Bluetooth Portable Speaker; $26-$30 (4.4 stars)

Oontz portable bluetooth speaker
Cambridge Soundworks/Amazon

Of the 57,000-plus reviews that users have left for this speaker on Amazon, 72 percent of them are five stars. So it should come as no surprise that this is currently the best-selling portable Bluetooth speaker on the site. It comes in eight different colors and can play for up to 14 hours straight after a full charge. Plus, it’s splash proof, making it a perfect speaker for the shower, beach, or pool.

Buy it: Amazon

2. JBL Charge 3 Waterproof Portable Bluetooth Speaker; $110 (4.6 stars)

JBL portable bluetooth speaker

This nifty speaker can connect with up to three devices at one time, so you and your friends can take turns sharing your favorite music. Its built-in battery can play music for up to 20 hours, and it can even charge smartphones and tablets via USB.

Buy it: Amazon

3. Anker Soundcore Bluetooth Speaker; $25-$28 (4.6 stars)

Anker portable bluetooth speaker

This speaker boasts 24-hour battery life and a strong Bluetooth connection within a 66-foot radius. It also comes with a built-in microphone so you can easily take calls over speakerphone.

Buy it: Amazon

4. Bose SoundLink Color Bluetooth Speaker; $129 (4.4 stars)

Bose portable bluetooth speaker

Bose is well-known for building user-friendly products that offer excellent sound quality. This portable speaker lets you connect to the Bose app, which makes it easier to switch between devices and personalize your settings. It’s also water-resistant, making it durable enough to handle a day at the pool or beach.

Buy it: Amazon

5. DOSS Soundbox Touch Portable Wireless Bluetooth Speaker; $28-$33 (4.4 stars)

DOSS portable bluetooth speaker

This portable speaker features an elegant system of touch controls that lets you easily switch between three methods of playing audio—Bluetooth, Micro SD, or auxiliary input. It can play for up to 20 hours after a full charge.

Buy it: Amazon

6. Altec Lansing Mini Wireless Bluetooth Speaker; $15-$20 (4.3 stars)

Altec Lansing portable bluetooth speaker
Altec Lansing/Amazon

This lightweight speaker is built for the outdoors. With its certified IP67 rating—meaning that it’s fully waterproof, shockproof, and dust proof—it’s durable enough to withstand harsh environments. Plus, it comes with a carabiner that can attach to a backpack or belt loop.

Buy it: Amazon

7. Tribit XSound Go Bluetooth Speaker; $33-$38 (4.6 stars)

Tribit portable bluetooth speaker

Tribit’s portable Bluetooth speaker weighs less than a pound and is fully waterproof and resistant to scratches and drops. It also comes with a tear-resistant strap for easy transportation, and the rechargeable battery can handle up to 24 hours of continuous use after a full charge. In 2020, it was Wirecutter's pick as the best budget portable Bluetooth speaker on the market.

Buy it: Amazon

8. VicTsing SoundHot C6 Portable Bluetooth Speaker; $18 (4.3 stars)

VicTsing portable bluetooth speaker

The SoundHot portable Bluetooth speaker is designed for convenience wherever you go. It comes with a detachable suction cup and a carabiner so you can keep it secure while you’re showering, kayaking, or hiking, to name just a few.

Buy it: Amazon

9. AOMAIS Sport II Portable Wireless Bluetooth Speaker; $30 (4.4 stars)

AOMAIS portable bluetooth speaker

This portable speaker is certified to handle deep waters and harsh weather, making it perfect for your next big adventure. It can play for up to 15 hours on a full charge and offers a stable Bluetooth connection within a 100-foot radius.

Buy it: Amazon

10. XLEADER SoundAngel Touch Bluetooth Speaker; $19-$23 (4.4 stars)

XLeader portable bluetooth speaker

This stylish device is available in black, silver, gold, and rose gold. Plus, it’s equipped with Bluetooth 5.0, a more powerful technology that can pair with devices up to 800 feet away. The SoundAngel speaker itself isn’t water-resistant, but it comes with a waterproof case for protection in less-than-ideal conditions.

Buy it: Amazon

This article contains affiliate links to products selected by our editors. Mental Floss may receive a commission for purchases made through these links.

Amazon Customers Are Swearing by a $102 Mattress


Before you go out and spend hundreds—if not thousands—of dollars on a new mattress, you may want to turn to Amazon. According to Esquire, one of the most comfortable mattresses on the market isn’t from Tempur-Pedic, Casper, or IKEA. It’s a budget mattress you can buy on Amazon for as little as $102.

Linenspa's 8-inch memory foam and innerspring hybrid mattress has more than 24,000 customer reviews on Amazon, and 72 percent of those buyers gave it five stars. The springs are topped by memory foam and a quilted top layer that make it, according to one customer, a “happy medium of both firm and plush.”

A bare mattress from Linenspa in a bedroom

Perhaps because of its cheap price point, many people write that they first purchased it for their children or their guest room, only to find that it far exceeded their comfort expectations. One reviewer who bought it for a guest room wrote that “it is honestly more comfortable than the expensive mattress we bought for our room.” Pretty impressive for a bed that costs less than some sheet sets.

Getting a good night's sleep is vital for your health and happiness, so do yourself a favor and make sure your snooze is as comfortable as possible.

The mattress starts at $102 for a twin and goes up to $200 for a king. Check it out on Amazon.

[h/t Esquire]

This article contains affiliate links to products selected by our editors. Mental Floss may receive a commission for purchases made through these links.