How Roman numerals work: the subtractive rule, bars and why IL is wrong

The seven letters, the six subtractive pairs, why 49 is XLIX and not IL, how bars write numbers past 3,999, and how to read years on buildings and film credits.

Open the Roman numeral converter Free, in your browser, nothing uploaded.

Roman numerals still appear on clock faces, book chapters, film credits, foundation stones, Super Bowl logos and the names of kings and popes. Reading them is easy once you know two rules, and writing them correctly needs one more. This article explains the system behind the Roman numeral converter, for students, puzzle solvers, designers setting a date in stone, and anyone squinting at the end of a film. For other ways to write numbers, such as binary and hexadecimal, see the number base converter; to work out how long ago a carved year was, use the date calculator; and for other codes and alphabets, try the text encoder.

What it is

Roman numerals use seven letters:

I V X L C D M
1 5 10 50 100 500 1,000

Rule 1: add from biggest to smallest. Letters are written in order of size and added: XVI = 10 + 5 + 1 = 16; MDC = 1,000 + 500 + 100 = 1,600.

Rule 2: a smaller letter before a bigger one is subtracted. IV = 5 − 1 = 4; XC = 100 − 10 = 90. In the standard form only six such pairs are allowed: IV (4), IX (9), XL (40), XC (90), CD (400), CM (900). Each subtracts a power of ten (I, X or C) from the next one or two letters up.

Rule 3: at most three in a row. I, X, C and M may repeat up to three times; V, L and D never repeat. So 4 is IV, not IIII, and 3,999 (MMMCMXCIX) is the largest number with plain letters.

These rules give one, and only one, correct way to write each number, which is why the converter can say exactly why a numeral like VX is wrong.

Bars for big numbers. A line over a letter multiplies it by 1,000, so a barred V is 5,000 and a barred X is 10,000. With bars over the thousands, numbers up to 3,999,999 can be written. Since you cannot easily type a bar, the converter reads a barred part in brackets: (XXV) is 25,000.

Writing a number is greedy: take the biggest value from the list (M, CM, D, CD, C, XC, L, XL, X, IX, V, IV, I) that still fits, write it, subtract it, and repeat.

How to use it

  1. Open Number to Roman and type a whole number from 1 to 3,999,999. The answer and each step appear at once.
  2. Open Roman to number and type letters in any case, with a barred part in brackets. If the numeral breaks a rule, the message says which.
  3. Open Year or date and pick a date, or type a year, to get it as day.month.year.
  4. Press Copy result. Bars are copied as combining overline marks, so they show in most documents.

A worked example

Writing 1888, a year on many Victorian buildings. Take the biggest value that fits each time: 1,000 (M) leaves 888; 500 (D) leaves 388; three 100s (CCC) leave 88; 50 (L) leaves 38; three 10s (XXX) leave 8; 5 (V) leaves 3; three 1s (III). The answer is MDCCCLXXXVIII, 13 letters, one of the longest years you will see. (The longest below 4,000 is 3,888, at 15 letters.)

Writing 1999. It is tempting to write IMM (2,000 − 1), but I may only come before V or X. The greedy method gives M (1,000), CM (900), XC (90), IX (9): MCMXCIX.

Reading 49. IL looks like 50 − 1, but I cannot come before L. Correct is XL (40) plus IX (9): XLIX. Likewise 444 is CDXLIV: CD + XL + IV.

A big number. 25,000 is a barred XXV: two barred X’s (10,000 each) and a barred V (5,000). Type it as (XXV).

A date. 5 December 2026 becomes V.XII.MMXXVI.

Checked with the tools

Every numeral above went through the converter’s own code (src/lib/roman/roman-numeral-converter.ts) in Node: toRoman() for 1888, 1999, 49, 444, 3888, 25,000 and 2026, with the same steps the page lists; and fromRoman() to confirm that IL, IM, VX and IIX are rejected and that MDCCCLXXXVIII and (XXV) read back as 1,888 and 25,000. While checking, we found that a correctly bracketed numeral such as (XII)CCCXLV always got a “usual way to write it” note, because the bracket form was compared with the barred form. It now compares like with like, and the tool’s tests check it.

Where it is used

  • Clocks and watches. Many faces use Roman hours; some show 4 as IIII for visual balance, an old clockmakers’ habit.
  • Film and TV credits. The copyright year at the end is often in Roman numerals.
  • Books and documents. Front matter pages (i, ii, iii), volumes and chapter numbers.
  • Names and events. Monarchs and popes (Elizabeth II), sporting events and sequels.
  • Buildings and monuments. Foundation years and dates of dedication.

Common mistakes

  • Subtracting from a letter too far up. Only I before V or X, X before L or C, and C before D or M. 99 is XCIX, not IC.
  • Repeating V, L or D. VV is X; LL is C. Use the single bigger letter.
  • Four in a row. XXXX should be XL, and CCCC should be CD.
  • Two subtractions in a row. IIX for 8 is wrong; write VIII.

Questions people ask

Why is there no zero? Roman numerals were for counting and recording amounts, done on a counting board, not for written place-value arithmetic, so no symbol for “nothing” was needed.

Did the Romans always use IV? No. Inscriptions show both IIII and IV, and the strict modern rules were settled much later. The converter follows the standard modern form.

How do I write a year like 2026 quickly? Split it into thousands, hundreds, tens and units: 2000 (MM) + 20 (XX) + 6 (VI) = MMXXVI.

Sources

  • Rules are the standard subtractive notation (I, V, X, L, C, D, M; IV, IX, XL, XC, CD, CM). Numbers over 3,999 use a bar over a letter to multiply by 1,000, a long-standing convention.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next