A bra size looks like a lookup table. It is really a small algorithm with three quirks, and those three quirks explain most of the confusion people have about sizes. Here is the whole thing in plain JavaScript.

The two inputs

A size has a band number (34) and a cup letter (C). Both come from two tape measurements:

  • underbust: around the ribcage, snug, right under the bust
  • bust: around the fullest part

Quirk 1: the band number is not a measurement

In the EU system the band is the underbust in centimetres, rounded to the nearest 5. A 73 cm ribcage is a 75 band.

The US and UK number is the same band with a different label. EU 65 is a 30, and every 5 cm step adds 2. So EU 75 is a 34, even though 75 cm is only about 29.5 inches. That gap of 4 to 5 inches between the tape and the label is where the old "add four inches" rule comes from, and it is why a 34 band does not mean a 34 inch ribcage.

// ub = underbust in cm const euBand = ub => Math.max(60, Math.min(100, Math.round(ub / 5) * 5)); const usBand = eb => 30 + (eb - 65) / 5 * 2; // 65 -> 30, 70 -> 32, 75 -> 34 

Quirk 2: the cup letter is a difference, not a size

The letter comes from the bust minus the band, in steps of 2.5 cm (about an inch). In this version AA is about 7.5 cm of difference, A is 10, B is 12.5, C is 15 and so on.

// bu = bust in cm, eb = EU band const cupIndex = (bu, eb) => Math.max(0, Math.min(8, Math.round((bu - eb - 7.5) / 2.5))); 

Because the letter is relative to the band, a C on a 30 band is a much smaller cup than a C on a 40 band. "C cup" on its own says nothing about volume.

Quirk 3: the letters fork after D

Up to D the three systems agree. After D they split:

const US = ['AA', 'A', 'B', 'C', 'D', 'DD', 'DDD', 'G', 'H']; const UK = ['AA', 'A', 'B', 'C', 'D', 'DD', 'E', 'F', 'FF']; const EU = ['AA', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']; 

Index 6 is a US DDD, a UK E and an EU F. Same cup, three labels. A size converter is just "same index, different array".

Putting it together

function braSize(underbustCm, bustCm) { const eb = euBand(underbustCm); const i = cupIndex(bustCm, eb); const us = usBand(eb); return { us: `${us}${US[i]}`, uk: `${us}${UK[i]}`, eu: `${eb}${EU[i]}`, fr: `${eb + 15}${EU[i]}`, // France and Spain label the band 15 higher au: `${us - 22}${UK[i]}`, // Australia uses dress-size numbers }; } braSize(79, 91.5); // about a 31 in underbust and a 36 in bust // { us: '36B', uk: '36B', eu: '80B', fr: '95B', au: '14B' } 

Sister sizes fall out for free

Since the letter is relative to the band, one band down and one letter up keeps the same cup volume. That is the whole "sister size" idea:

const sisters = (us, i) => [[us - 2, i + 1], [us + 2, i - 1]] .filter(([b, c]) => b >= 28 && b <= 44 && c >= 0 && c <= 8) .map(([b, c]) => `${b}${US[c]}`); sisters(34, 3); // 34C -> ['32D', '36B'] 

What the code cannot do

  • Rounding hides a lot. An underbust of 77.4 cm and one of 77.6 cm land on different bands, which is why so many people sit between two sizes.
  • Brands cut to their own charts. Some skip the label offset and use the underbust in inches directly, so the same two tape numbers can come out as 36B here and 34C on a brand's own chart.
  • Shape is not in the inputs. Two people with the same size can need completely different styles. A size is a starting point for trying things on, not an answer.

A live version of this logic with inch and cm input is here: bra size calculator.

Drafted with AI assistance. The code is the logic the calculator runs.