Roman Numeral Converter Calculator

Type a whole number and this converter writes it in Roman numerals; type a Roman numeral and it reads the number back. It works both directions from the same box, so you never have to pick a mode. Dates entered as 25/12/2026 convert part by part, the way they appear on cornerstones and in film credits. Above 3,999 you can switch to vinculum notation, where an overline multiplies a symbol by a thousand. Every answer comes with a symbol-by-symbol breakdown, and non-standard spellings such as IIII are read and then flagged against the standard form.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Number, numeral or dateType digits (2026), a Roman numeral (MMXXVI), or a date with slashes, dots or dashes (25/12/2026).2026
Notation for values above 3,999Only affects values of 4,000 and above; everything from 1 to 3,999 is written the same way either way.Standard — repeat M

It returns

  • Roman numeral — The standard numeral for the value. If you entered a numeral, this is its standard spelling.
  • Integer value — Blank for a date, because a date is several numbers rather than one.
  • Letters in the numeral — Counts I, V, X, L, C, D and M only, which is what matters when the numeral has to fit a ring, a plaque or a tattoo.
  • Form check — Whether the numeral is the standard modern spelling, a historical variant, or outside the classical range.

The formula

N=k=1mεksk
value(X¯)=1000×value(X)

In plain text: N = Σ εₖ · sₖ, where εₖ = −1 if sₖ < sₖ₊₁ and +1 otherwise

  • NThe integer the numeral stands for (—)
  • sₖValue of the k-th symbol: I=1, V=5, X=10, L=50, C=100, D=500, M=1000 (—)
  • εₖSign of the k-th symbol: −1 when the symbol to its right is worth more, otherwise +1 (—)
  • mNumber of symbols in the numeral (letters)

Reading is a single left-to-right pass. Writing is the reverse operation: take the largest value in the ordered list 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 that does not exceed what is left, append its symbols, subtract it, and repeat until nothing remains.

Updated Category Angles, Digital & Notation Units Verified against published test cases Reading time 13 min

What a Roman numeral actually encodes

A Roman numeral is an additive tally with a compression trick, not a positional number system. Seven letters carry fixed values — I is 1, V is 5, X is 10, L is 50, C is 100, D is 500 and M is 1,000 — and the value of a numeral is the sum of its letters. MDCLXVI is 1,000 + 500 + 100 + 50 + 10 + 5 + 1 = 1,666, which is the one year that uses each symbol exactly once in descending order.

The trick is the subtractive pair. Writing 4 as IIII is legal and appears on clock faces to this day, but the classical convention writes it as IV: a smaller symbol placed before a larger one is taken away rather than added. Six pairs are sanctioned — IV, IX, XL, XC, CD, CM — and they cap any run of repeated letters at three.

The consequence that matters for a converter is that position carries no weight of its own. In 2,026 the digit 2 means two thousand because of where it sits; in MMXXVI the two Ms mean two thousand because M means a thousand wherever it appears. There is no zero, no fraction and no sign, so the system covers exactly the positive whole numbers. That is why this tool refuses 0 and refuses negatives rather than inventing a symbol for them. If you need a different base rather than a different alphabet, the number base conversion calculator handles binary, octal and hexadecimal, and the number to words converter spells a figure out in English for cheques and contracts.

The subtractive rule, and how the converter applies it

Reading a numeral takes one pass from left to right. Look at each symbol and compare it with the symbol immediately to its right. If the right-hand neighbour is worth more, subtract the current symbol; otherwise add it. The final symbol has no right-hand neighbour, so it is always added. That single comparison is the whole algorithm, and it is the formula shown above: N is the sum of every symbol value sk carrying a sign εk of −1 or +1.

Writing a numeral is the same rule run backwards, and it is easiest as a greedy pass over thirteen values: 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1, paired with M, CM, D, CD, C, XC, L, XL, X, IX, V, IV, I. Take the largest value that still fits in what remains, write its symbols, subtract it, and repeat. Because the four subtractive pairs sit in the list alongside the plain symbols, the greedy pass produces the classical spelling without any special-casing.

An equivalent way to see it, and the one the breakdown table uses, is digit by digit. Split the number into thousands, hundreds, tens and units, convert each digit on its own, and concatenate. 1,987 is 1,000 + 900 + 80 + 7, which is M + CM + LXXX + VII = MCMLXXXVII. The two methods agree for every value from 1 to 3,999, which is a useful check when you are doing it by hand.

The two rules are not symmetric in strength. Reading accepts far more than writing produces: IIII, VIIII and even IC all read cleanly under the neighbour comparison, yet none of them is what the greedy pass emits. The converter therefore does both — it reads whatever you type, then re-writes the value in standard form and tells you in the Form check tile whether the two agree.

Worked example: 1987 to MCMLXXXVII, and MCMLXXXIV back to 1984

Going forward. Convert 1,987 by splitting it into place-value groups and converting each one.

  1. Thousands. 1,000 fits once, so write M and 987 remains.
  2. Hundreds. 900 is one of the subtractive pairs, so write CM; 87 remains.
  3. Tens. 80 is 50 + 10 + 10 + 10, so write LXXX; 7 remains.
  4. Units. 7 is 5 + 1 + 1, so write VII; nothing remains.
  5. Join them. M + CM + LXXX + VII = MCMLXXXVII, which is ten letters (M, C, M, L, X, X, X, V, I, I).

Check it by adding the pieces back: 1,000 + 900 + 80 + 7 = 1,987.

Going back. Read MCMLXXXIV one symbol at a time, comparing each with its right-hand neighbour.

  1. M = 1,000, next is C = 100, which is smaller, so add 1,000. Running total 1,000.
  2. C = 100, next is M = 1,000, which is larger, so subtract 100. Running total 900.
  3. M = 1,000, next is L = 50, so add. Running total 1,900.
  4. L = 50, next is X = 10, so add. Running total 1,950.
  5. X, X, X = 10 each, each followed by something no larger, so add three times. Running total 1,980.
  6. I = 1, next is V = 5, which is larger, so subtract 1. Running total 1,979.
  7. V = 5, last symbol, so add. Running total 1,984.

Written as a single sum: 1,000 − 100 + 1,000 + 50 + 10 + 10 + 10 − 1 + 5 = 1,984. Note how close MCMLXXXIV (1984) is to MCMLXXXVII (1987) — numerals for nearby years can differ by several letters, which is why copying a date off a building by eye is unreliable.

The seven symbols, the six subtractive pairs, and the overlined values

Symbol values. Overlined letters are vinculum forms: an overline multiplies the letter by 1,000.
SymbolValueNotes
I1Repeats up to three times
V5Never repeated
X10Repeats up to three times
L50Never repeated
C100Repeats up to three times
D500Never repeated
M1,000Repeats up to three times in standard form
IV4Subtractive pair
IX9Subtractive pair
XL40Subtractive pair
XC90Subtractive pair
CD400Subtractive pair
CM900Subtractive pair
5,000Vinculum form of V
10,000Vinculum form of X
50,000Vinculum form of L
100,000Vinculum form of C
500,000Vinculum form of D
1,000,000Vinculum form of M

Only I, X and C are ever subtracted, and only from the next two values up — I from V or X, X from L or C, C from D or M. That is why IL for 49 and IC for 99 are not standard. M is never subtracted in the 1–3,999 range because no plain symbol is worth more.

Common numbers and years in Roman numerals

Values generated by the same greedy pass this calculator runs.
NumberNumeralNumberNumeral
1I100C
4IV400CD
5V490CDXC
9IX500D
14XIV900CM
19XIX1,000M
40XL1,666MDCLXVI
44XLIV1,984MCMLXXXIV
50L1,987MCMLXXXVII
90XC1,990MCMXC
99XCIX2,026MMXXVI
42XLII3,999MMMCMXCIX

3,999 is the largest number the standard form reaches, because 4,000 would need a fourth M.

How to read the Form check result

Standard form means the numeral you entered is exactly what the greedy pass produces, and the value is between 1 and 3,999. This is the spelling to use for a publication date, a monument, a legal document or a tattoo. It is also the only spelling that round-trips: convert it to a number and back and you get the same string.

Non-standard form means the numeral reads unambiguously but is spelled differently from the modern convention. IIII for 4 is the famous example — it is standard on clock dials, where it balances VIII opposite it. VIIII for 9 appears throughout Roman-era inscriptions. The converter still returns a value for these, and the warning tells you which standard numeral covers the same value. Treat the flag as a note about convention, not as an error.

Outside the standard 1–3,999 range means the value is real but the classical alphabet cannot express it without either repeating M more than three times or reaching for the overline. Choose deliberately here: repeated Ms are readable to anyone, while an overline is compact but relies on the reader knowing the convention and on your typeface rendering the combining mark.

Cannot be written in this notation covers zero, negatives, fractions and anything past the notation's ceiling. The Romans expressed fractions on a separate duodecimal system of dots and used the word nulla where a zero was needed, so there is no numeral to return.

The vinculum and how to type it

The vinculum is a bar drawn over a letter to multiply it by 1,000, so is 5,000 and is 10,000. It lets the seven letters reach 3,999,999 — M̅M̅M̅C̅M̅X̅C̅I̅X̅CMXCIX — rather than stopping at 3,999. Unicode encodes the bar as U+0305 combining overline, typed after the letter it covers, and separately provides ready-made numeral characters in the Number Forms block at U+2160 onward. This converter reads either the combining overline or a plain underscore typed before a letter, so _V and both give 5,000. Set the notation selector to vinculum to get overlined output; leave it on standard and 5,000 comes back as MMMMM.

Mistakes that produce a wrong numeral

  • Subtracting from the wrong symbol. Only I, X and C are ever placed in front of a larger letter, and only in front of the next two values up: I before V or X, X before L or C, C before D or M. 49 is XLIX, not IL; 99 is XCIX, not IC. This converter reads IL as 49 and then flags it, because the reading rule and the writing rule are not the same rule.
  • Repeating a five-symbol. V, L and D never repeat, because VV is simply X. Any numeral containing VV, LL or DD comes back flagged as non-standard.
  • Reading a date as one number. XXV·XII·MMXXVI is three numerals side by side, not a single value. Type it with separators and this tool converts each part on its own; run the letters together and you get one very large number instead.
  • Losing the overline. Copying an overlined numeral into a system that strips combining marks turns 10,000 into 10 silently. If the destination is plain ASCII, write the number out or repeat the M instead.
  • Expecting a zero. There is no symbol for zero, so a value such as 1,005 has no placeholder between the M and the V — it is MV, which looks alarmingly short but is correct.

Where the numerals are still used, and what to use instead

Roman numerals survive in places where a number needs to look formal or needs to be visibly distinct from an ordinary count: monarchs and popes, Super Bowls, book front-matter page numbers, chemical group numbers on older periodic tables, clock and watch dials, film copyright lines, and the cornerstones of public buildings. In every one of those settings the numeral is decorative or ordinal — nobody adds two of them together. That is not an accident of taste. Arithmetic on numerals is genuinely awkward, which is why merchants across medieval Europe switched to Hindu-Arabic digits for calculation while keeping Roman numerals for the formal record.

If your problem is representing a number in a different notation rather than a different alphabet, other tools fit better. Use the number base conversion calculator for binary, octal or hexadecimal, the data storage unit converter when the notation question is really about kibibytes against kilobytes, and the significant figures calculator when the question is how much precision a written figure claims. For angles written in a mixed-radix format that behaves much like a Roman numeral — several units concatenated with no positional weight — see the degrees, minutes and seconds converter. And when you need a figure written out for a cheque or a contract, the number to words converter is the one to reach for.

One historical note worth keeping in mind when you read an old inscription: the strict subtractive convention this calculator treats as standard was not consistently applied in antiquity. Roman-era stonework mixes IIII and IV, sometimes on the same monument, and the tidy six-pair system is a later regularisation. So when the Form check tile says non-standard, it is comparing your numeral against modern convention, not accusing a Roman mason of a mistake.

Key terms

Subtractive pair
A smaller symbol placed immediately before a larger one, so its value is taken away rather than added. The six standard pairs are IV, IX, XL, XC, CD and CM.
Vinculum
A bar drawn over one or more letters to multiply them by 1,000. Written in Unicode as combining overline U+0305 after each letter it covers.
Canonical form
The single spelling that the standard writing rule produces for a value. Several numerals may read as 4, but only IV is canonical.

Frequently asked questions

What is XLII in numbers?

XLII is 42. Read it left to right: XL is a subtractive pair worth 40, because X (10) sits before L (50) and so is taken away from it; then II adds 1 + 1. So 40 + 2 = 42. Type XLII into the box above and the breakdown table shows the running total at every symbol.

How do I write the current year in Roman numerals?

2026 is MMXXVI. Split the year into place-value groups: 2,000 is MM, 20 is XX and 6 is VI, then join them in that order. The same method handles any year up to 3,999. For a full date, type it with slashes — 25/12/2026 — and each part is converted separately.

Why does my clock show IIII instead of IV?

Clock dials use IIII by convention, not by error. On a dial it balances the VIII directly opposite it and keeps the left half of the face visually similar in weight to the right, and it means the numerals 1 to 4 are cut from a single repeated punch. It is a dial convention rather than a rule about the number system, and not every clock follows it — plenty of tower and watch dials use IV. This calculator reads IIII as 4 and marks it non-standard, which is a note about modern convention rather than a fault.

What is the largest number you can write in Roman numerals?

3,999 (MMMCMXCIX) is the largest in standard form, because 4,000 would need a fourth M and no more than three of any repeating symbol is allowed. With the vinculum — an overline multiplying a letter by 1,000 — the ceiling rises to 3,999,999. Switch the notation selector above to see values of 4,000 and up written with overlines rather than long runs of M.

Is there a Roman numeral for zero?

No. The system has no symbol for zero and no positional column that needs a placeholder, so nothing is written where a decimal system would put a 0. When Roman-era and medieval writers needed the concept in a table, they wrote the word nulla or the letter N. Enter 0 or a negative number here and the calculator says so rather than inventing a symbol.

Can I write a decimal or a fraction in Roman numerals?

Not with these seven letters. The Romans handled fractions on a separate duodecimal scheme built on twelfths, using dots and specific marks for each twelfth, which is a different notation entirely and is not what this converter reads. Enter a whole number: type 3.5 and the calculator rejects it rather than rounding silently. One exception is worth knowing — a figure with two dots, such as 3.5.2026, is read as a European-style date and each part is converted separately.

Why does IC get flagged when it obviously means 99?

Because the reading rule and the writing rule differ. Reading only asks whether the next symbol is larger, so IC resolves to 100 − 1 = 99 without ambiguity. The writing rule is stricter: only I, X and C are subtracted, and only from the next two values up, so I may precede V and X only, never C. 99 is therefore XCIX. The calculator gives you the value and the standard spelling side by side.

How many letters will my date have on a ring or a tattoo?

The Letters in the numeral tile counts exactly that — I, V, X, L, C, D and M — and ignores separators. A full date such as 25/12/2026 comes to 12 letters as XXV·XII·MMXXVI. Length varies sharply between neighbouring years: 1,987 is ten letters as MCMLXXXVII while 1,990 is five as MCMXC, so check the exact year before committing to a layout.

Does the calculator care about lower-case letters or spaces?

No. Spaces and commas are stripped and letters are upper-cased before parsing, so mcm xc and MCMXC both give 1,990. What it will not accept is any letter outside I, V, X, L, C, D and M — those produce a message rather than a guess, because a mistyped letter has no safe interpretation.

References

  • Number Words and Number Symbols: A Cultural History of Numbers — Karl Menninger, MIT Press (Dover reprint)
  • A History of Mathematical Notations, Volume I — Florian Cajori, Open Court (Dover reprint)
  • The Universal History of Numbers — Georges Ifrah, John Wiley & Sons
  • The Unicode Standard — Number Forms (U+2150–U+218F) code chartUnicode Consortium