Dicing an Onion, the Mathematically Optimal Way

58 surprisetalk 31 8/16/2025, 1:54:19 PM pudding.cool ↗

Comments (31)

re · 1h ago
> It turns out that making horizontal cuts almost never helps with consistency.

They made the horizontal cuts evenly spaced between the cutting surface and the top of the onion, which is nonsensical to me. I believe that a single horizontal cut at around 15-20% height would be better for uniformity than a horizontal cut at 50% height.

indy · 6m ago
Yes! They had all those visualisations and you could see the problem areas from vertical slicing were at the bottom of the onion, a couple of horizontal slices down there would have given the best solution.
1a527dd5 · 1h ago
This is fun!

I really struggled to effectively cut onions until this: https://www.youtube.com/watch?v=CwRttSfnfcc

Haven't looked back since.

morninglight · 43m ago
That may be the most useful thing I've seen on the internet in months.

Thanks much!

feoren · 1h ago
This ignores the obvious solution of not cutting all the way through. If every other radial cut is only through half the layers, you avoid making the inner pieces too small. It's funny how common it is for people to claim some sort of optimality with lots of math and analysis while completely failing to consider a better possibility. Never take seriously claims that someone found a "mathematically optimal" way of doing something. They didn't.
1970-01-01 · 46m ago
Someone, somewhere, will now spend time growing square onions to fix the problem. Probably someone in Japan.

https://en.wikipedia.org/wiki/Square_watermelon

ginko · 40m ago
Better yet onions that grow in large flat sheets.
altairprime · 1h ago
To translate the final answer from math to human (as I’m going to be explaining this to my mother when I chat with her next!):

Imagine the half onion is a half rainbow. You know there’s another half rainbow lurking below the surface, the onion’s ghost of the sphere it once was. Place your knife as usual for each of your ten dice cuts, but instead of cutting straight down towards the cutting board, angle it slightly inward towards the end of the onion’s ghostly half-rainbow sphere below the board. Check your fingers for safety and then make your cut. Assuming your knife isn’t a plasma cutter, you’ll be stopped at the cutting board without ever reaching the onion at the end of the rainbow, and that’s cool. Set your knife at the next dice point and try again :)

(This still improves on the other dicing cases and only costs 1% uniformity by using 100% radius as the target.)

fnord77 · 1h ago
> Place your knife as usual for each of your ten dice cuts,

what does this mean, exactly? I don't cut onions. Also I assume there is some pre-step where you cut the onion in half on some axis, but I don't know which.

altairprime · 45m ago
If you inspect the onion diagrams in the article carefully, they show various ways to cut an onion, as if origami diagrams but with knives. Still, I think you’ll want to learn the traditional methods of dicing an onion independently first, and then with that knowledge revisit this article and my description; this is last-10% optimization work that hinges on knowing that first-90% of how to dice an onion at all.
zeroonetwothree · 50m ago
If you don’t cut onions you probably shouldn’t bother with this thread. Or at least watch a video
jader201 · 1h ago
Why limit it to just two horizontal cuts?

I’ve always just made equal horizontal and vertical cuts, then slice the onion crosswise.

This results in pretty much no large pieces, and only some smaller pieces (which I prefer over larger ones, anyway).

I don’t care about standard deviation — I only care about minimizing the maximum size (but still without turning them to mush).

(Also, I know this was more of a fun mathematical look at chopping onions vs. practical. But still the “two horizontal cuts” thing seemed to be practical guidance, when it seemed like just equal horizontal and vertical cuts is far superior. But, granted, it’s a little trickier to do.)

EDIT: looking at Youtube, looks like the 2-cut thing is normal. But adding a few more cuts isn’t that much harder, and eliminates the larger pieces from the 2-cut method. I’ll stick to my method, even if it’s a little more work.

otherme123 · 4m ago
Horizontal cuts does next to nothing, the onion is already "cut" horizontally.

In my experience it does worse, as the onion gets unstable to do the vertical cuts.

pinko · 1h ago
The post's dataviz in fact allows you vary the # of horizontal cuts and compare the results. Take a look.
jader201 · 1h ago
Right, but horizontal is limited to two, best I can tell. No?
zeroonetwothree · 45m ago
Standard deviation is a poor measure because you care more about avoiding big pieces than small ones. Penalizing for having a few tiny pieces doesn’t make sense.
thunderbong · 1h ago
Posted less than a day ago (8 points, 2 comments) -

https://news.ycombinator.com/item?id=44894302

hashmap · 1h ago
I dislike easily 90%+ of the images I recognize as AI-generated, but the ones on this internet web site I think are a good use of the tech.
russsamora · 35m ago
There was no AI used on this website!
criley2 · 1h ago
Enjoyed reading this. I've followed J Kenji Lopez-alt for a while and I've practiced the "aim below" method for a few years now.

I also like that the article ends with the perfect Kenji-ism. "Yes, technically my method is statistically ideal, but like, it's home cooking and it doesn't matter, heterogenity isn't the enemy". Reminds me of Adam Ragusea (https://www.youtube.com/watch?v=5cWRCldqrxM), we're not making fancy french cuisine, we don't need a perfect brunoise!

Theodores · 57m ago
Once upon a time, my father, who could not cook, harshly criticised my onion chopping technique. This knocked my confidence in the kitchen quite a bit. I refused to learn the fancy techniques of the TV gameshow celebrity chef that my dad was enamoured with.

In my opinion, so long as you are chopping onions, all is well. Sure it could be dangerous, with fingers and egos at stake, but far worse is to not be chopping onions as that means ready meals, take out meals and having a poorer diet.

fnord77 · 1h ago
From their 2-d diagram, I'm having a hard time understanding what they mean by "vertical cuts" and "radial cuts"
immibis · 1h ago
Vertical cuts go up and down. Radial cuts go towards a point. But you make a valid point that this 2D diagram doesn't tell the full story, unless your onions are cylindrical, which they're not.
pfdietz · 3h ago
Throws it in the food processor.
webstrand · 42m ago
Now you have to clean the food processor. Which is enough of a trouble to prevent me from using it very frequently.
pfdietz · 14m ago
Remove from the motor/base, separate parts, spray with water and toss in the dishwasher. And wouldn't you have to clean the cutting board and knife anyway?

The most important part: much less eye watering.

SoftTalker · 1h ago
Nice if you want onion mush.
criley2 · 1h ago
A few quick pulses doesn't make mush and is fine for a lot of applications. Otherwise, food processors have dicing kits https://i.imgur.com/cXbZ9aC.png

I enjoy the art of prep with my beautiful wa gyuto, I truly do. But if you put a 5 pound bag of large onion on front of me to dice, I will prefer the machine...

footlong2 · 1h ago
Too much dork time on their hands. Cooking is fun, not vibe coding.
sram1337 · 1h ago
In my opinion there is no such thing as too much dork time. This post is fun, just like cooking. The onion-inspired font for the section titles is fun. The interactive graphs are fun. Also vibe coding is fun.

What was the point of this judgmental comment?

russsamora · 34m ago
No vibes were coded in the making of this website