<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Find My Bra Size</title>
    <description>The latest articles on DEV Community by Find My Bra Size (@findmybrasize).</description>
    <link>https://dev.to/findmybrasize</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4191546%2F010b7c48-4159-4a4d-8f54-d19b49668a40.png</url>
      <title>DEV Community: Find My Bra Size</title>
      <link>https://dev.to/findmybrasize</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/findmybrasize"/>
    <language>en</language>
    <item>
      <title>How I built an accurate bra-size calculator in vanilla JavaScript (no backend)</title>
      <dc:creator>Find My Bra Size</dc:creator>
      <pubDate>Sun, 18 Oct 2026 05:48:49 +0000</pubDate>
      <link>https://dev.to/findmybrasize/how-i-built-an-accurate-bra-size-calculator-in-vanilla-javascript-no-backend-2lk</link>
      <guid>https://dev.to/findmybrasize/how-i-built-an-accurate-bra-size-calculator-in-vanilla-javascript-no-backend-2lk</guid>
      <description>&lt;p&gt;Bra sizing math is deceptively simple on paper and surprisingly tricky in practice. Here's how I built a free, client-side bra size calculator (&lt;a href="https://bra-sizecalculator.com/" rel="noopener noreferrer"&gt;https://bra-sizecalculator.com/&lt;/a&gt;) that runs entirely in the browser — no backend, no database, no frameworks.&lt;/p&gt;

&lt;p&gt;The core math is two measurements: underbust (for band) and overbust (for cup). Band size is the underbust rounded to the nearest even number (US/UK sizing); cup letter comes from the difference between overbust and band in inches: 1" = A, 2" = B, 3" = C, and so on. The tricky part is the edge cases: measuring between whole inches, sister sizes (34C ≈ 32D ≈ 36B), and the fact that most people wear the wrong band size, which throws the whole calculation off.&lt;/p&gt;

&lt;p&gt;Implementation-wise, I kept it dependency-free: a single JS module takes the two inputs, sanitizes them (guarding against cm/inch mixups and absurd values like a 200-inch band), computes band and cup, and maps to a full sister-size grid. All computation happens in the browser, so there is no server round-trip and no measurement data ever leaves the device — which matters a lot for a tool people are understandably privacy-sensitive about.&lt;/p&gt;

&lt;p&gt;A few lessons worth stealing for your own micro-tools:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Validate at the boundary: reject impossible inputs before the math ever sees them.&lt;/li&gt;
&lt;li&gt;Round in the right place: band rounding must happen before the cup difference is computed, not after, or every letter shifts.&lt;/li&gt;
&lt;li&gt;Sister-size mapping is just a lookup table, but generating it programmatically from band/cup indices keeps it consistent across US, UK, and EU charts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The calculator is live and free at &lt;a href="https://bra-sizecalculator.com/" rel="noopener noreferrer"&gt;https://bra-sizecalculator.com/&lt;/a&gt; — try it, break it, and tell me which sizing edge case I missed.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
  </channel>
</rss>
