{
  "id": "visual-r5-10",
  "title": "Andrew Aquino · 让读者试切一颗洋葱再比较结果",
  "url": "https://pudding.cool/2025/08/onions/",
  "platform": "The Pudding",
  "type": "page",
  "captured_at": "2026-12-05T02:00:59.063Z",
  "published_raw": null,
  "author": "Andrew Aquino（与 Russell Samora、Jan Diehm 合作）",
  "author_url": "https://pudding.cool/author/andrew-aquino",
  "discovery_term": "The Pudding 编辑部原作索引 / dicing onions",
  "frames": [
    {
      "slide": 1,
      "path": "evidence/round-05/visual-r5-10/example-1.png",
      "caption": "同心圆洋葱的垂直切法与均匀度读数",
      "observed": "CUTS (VERTICAL)\n10"
    },
    {
      "slide": 2,
      "path": "evidence/round-05/visual-r5-10/example-2.png",
      "caption": "径向切法的同类控件和均匀度读数",
      "observed": "CUTS (RADIAL)\n10"
    },
    {
      "slide": 3,
      "path": "evidence/round-05/visual-r5-10/example-3.png",
      "caption": "可探索参数及最优组合结果表",
      "observed": "EXPLORE; Optimal techniques"
    }
  ],
  "observation": {
    "title": "Dicing an Onion, the Mathematically Optimal Way",
    "url": "https://pudding.cool/2025/08/onions/",
    "text": "This is a project about onions and math.\n\nWhy? Because tens of millions of people are curious about how to properly dice an onion, according to YouTube.\n\nIn 2021, chef and food writer J. Kenji López-Alt broke out some math to get optimal uniform piece sizes. But there is more than one way to dice an onion…\n\nDicing an\nthe Mathematically Optimal Way\n\nBy Andrew Aquino\nwith Russell Samora and Jan Diehm\n\nThis is an onion. (Well, a simplified cross-section of one.) We’ve cut it in half lengthwise, using a sharp knife to reduce the chance of injury and onion-induced crying.\n\nFrom here, what’s the best way to dice it? That is, how do we get the most uniform piece size?\n\nFor the sake of example, let’s assume our onion has 10 layers. We can represent the layers as concentric circles.\n\nLet’s start with a common approach—vertical cuts.\n\nThe pieces near the center line are fairly consistent in shape and size.\n\nBut along the bottom there are some noticeably larger pieces. When you dice an onion, you’re probably not imagining pieces like these.\n\nThis inconsistency can be measured by calculating the standard deviation of our pieces’ areas.\n\nA note on the standard deviation\n\nWithout getting too deep in the weeds, just know that a higher standard deviation means more piece size variation. So to obtain the most consistently sized pieces, we want to make the standard deviation as small as possible.\n\nAdjust the slider below to see how the number of cuts affects the standard deviation. Oh, and don’t forget to check out the exploded view toggle to see the variation.\n\nEXPLODE\nEXCELLENT UNIFORMITY\nSTD DEV: 37.3%\nCUTS (VERTICAL)\n10\n\nOkay, let’s try a different technique—radial cuts.\n\nThe piece size still isn’t very consistent—those near the outside are much larger than those near the center.\n\nHow does the standard deviation of pieces cut radially compare to those cut vertically?\n\nEXPLODE\nFAIR UNIFORMITY\nSTD DEV: 57.7%\nCUTS (RADIAL)\n10\nCUT TYPE\nVERTICAL\nRADIAL\n\nWhen making 10 cuts into a 10-layer onion radially, the standard deviation (57.7%) is greater than when cutting vertically (37.3%), which means that our piece size is now less consistent.\n\nBut we can improve the radial cut strategy.\n\nKenji claims that the most uniform pieces can be produced by aiming at a point ~60% of the onion’s radius below the cutting surface.\n\nEXCELLENT UNIFORMITY\nSTD DEV: 34.5%\n\nThe pieces now look more consistent, except for a few smaller ones along the bottom.\n\nDoes the math confirm ~60% depth as the superior technique?\n\nIndeed, 34.5% is the smallest standard deviation we’ve seen so far. This finding is further supported by Dr. Dylan Poulsen, an associate professor of mathematics at Washington College, who calculated that the ideal “onion constant” is ~55.731% depth (source, another source). Kenji backs Dr. Poulsen’s method in this more recent New York Times article.\n\nBut we can improve the radial cut strategy even more!\n\nDr. Poulsen’s analysis is based on making infinitely many cuts into an onion with infinitely many layers:\n\nA slide from Dr. Poulsen’s breakdown on the math behind onion cutting.\n\nHowever, in the physical world we’re only capable of making a finite number of cuts, and real onions have a finite number of layers. The diagrams from Kenji’s original claim show 10 cuts being made into an onion with 10 layers. How can we optimize that?\n\nWhen making 10 cuts into a 10-layer onion, the smallest standard deviation (29.5%) occurs when making radial cuts aimed 96% of the onion’s radius below the cutting surface! 😮\n\nEXPLODE\nEXCELLENT UNIFORMITY\nSTD DEV: 29.5%\nCUTS (RADIAL)\n10\nCUT TYPE\nVERTICAL\nRADIAL\nTARGET HEIGHT\n−96%\n\nBefore we explain how we got that result, let’s briefly consider another popular technique: making 1-2 horizontal cuts before vertical, which Kenji recommended in 2016. What does the math say about this strategy? How does combining it with vertical/radial cuts affect our piece size?\n\nEXPLODE\nEXCELLENT UNIFORMITY\nSTD DEV: 37.3%\nLAYERS\n10\nCUTS (VERTICAL)\n10\nCUTS (HORIZ.)\n0\nCUT TYPE\nVERTICAL\nRADIAL\n\nHow do you find the size of an onion piece?\n\nOptimal techniques\n\nWe looked at all 19,320 combinations of onion layer numbers, vertical/radial cut numbers, radial cut depth (as whole number percentages), and horizontal cut numbers that are possible with this model. We then found which technique results in the minimum standard deviation when making 1-10 vertical/radial cuts into an onion with 7-13 layers:\n\nNUMBER OF LAYERS\n7\n8\n9\n10\n11\n12\n13\nCUTS\tMETHOD\tSTANDARD DEVIATION\n10\t\n96%\nradial, 96% depth\n29.5%\n9\t\n76%\nradial, 76% depth\n32.5%\n6\t\n69%\nradial, 69% depth\n33.2%\n7\t\n87%\nradial, 87% depth\n33.2%\n8\t\n53%\nradial, 53% depth\n34.2%\n5\t\n96%\nradial, 96% depth\n35.4%\n4\t\n53%\nradial, 53% depth\n41.0%\n3\t\n69%\nradial, 69% depth\n41.6%\n1\t\nvertical, 1 horizontal cut\n43.5%\n2\t\nvertical\n43.5%\n\nInsights\n\nIt turns out that making horizontal cuts almost never helps with consistency.\nRadial cuts are usually more consistent than vertical cuts, but you have to aim below the center of the onion.\nThe ideal radial depth varies depending on the number of layers and cuts—but it’s always ≥48%. As the layer and cut numbers increase and approach infinity, this ideal radial depth converges to the onion constant of ~55.731%, mentioned above.\nThe importance of optimal\n\nArmed with this knowledge, we can apply the optimal dicing strategy to any onion. But how big a difference does being mathematically optimal make when it comes to cooking? We got in touch with Kenji via email to find out.\n\nUs— How much does uniformity matter?\n\nKenji— “It matters far more for winning internet debates and solving interesting math problems than it does for cooking. For home cooks, having onion dice that are a little off from perfect is not really an issue anyone should seriously worry about.”\n\nOh…\n\nWell anyways, we hoped you enjoyed reading this deep-dive about onions and math. And even if your food still tastes the same, you can show off your optimally uniform onion pieces in your next meal. Good luck finding an infinitely thin knife and an onion made of perfect circles.\n\nSupport us on Patreon \n\nWe pour our heart into these stories, but they take time and money. For just $2/month, you can help support us. Join our growing community of data-driven enthusiasts.\n\nSubscribe to our newsletter \n\nGet all our latest stories in your inbox. Plus get links to some of our favorite projects from around the web.\n\nABOUT US\n\nOur Team\nOur Resources\nPitch a Story\nBrand Partnerships\nPrivacy Policy\n\nFOLLOW US\n\nInstagram\nTwitter/X\nTikTok\nYouTube\nRSS",
    "locators": [
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"number of cuts\" min=\"1\" max=\"10\" step=\"1\">",
        "parent": "CUTS (VERTICAL)\n10"
      },
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"number of cuts\" min=\"1\" max=\"10\" step=\"1\">",
        "parent": "CUTS (RADIAL)\n10"
      },
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"cut target depth percentage\" min=\"0\" max=\"1\" step=\"0.01\">",
        "parent": ""
      },
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"number of cuts\" min=\"1\" max=\"10\" step=\"1\">",
        "parent": "CUTS (RADIAL)\n10"
      },
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"cut target depth percentage\" min=\"0\" max=\"1\" step=\"0.01\">",
        "parent": "TARGET HEIGHT\n−96%"
      },
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"number of layers\" min=\"7\" max=\"13\" step=\"1\">",
        "parent": "LAYERS\n10\nCUTS (VERTICAL)\n10\nCUTS (HORIZ.)\n0"
      },
      {
        "type": "<input type=\"range\" class=\"svelte-14ndyrv\" aria-label=\"number of cuts\" min=\"1\" max=\"10\" step=\"1\">",
        "parent": "LAYERS\n10\nCUTS (VERTICAL)\n10\nCUTS (HORIZ.)\n0"
      }
    ]
  }
}
