Roman numeral converter

Convert numbers to Roman numerals and Roman numerals to numbers, from 1 to 3,999 (3,999,999 with overlines), with the standard form of any numeral.

Drafted with AI writing toolsUpdated Checked examples: 8

1 to 3999; up to 3,999,999 with the overline option.
More options
Try
Result
MMXXVI
Result: MMXXVI
Value
2,026

2,026 is MMXXVI: MM = 2,000, XX = 20, VI = 6.

MMXXVI by place value

MM2,000XX20VI6
How it's calculated S
  1. Split into place values

    2026=2000+20+62026 = 2000 + 20 + 6
  2. Write each place value

    2000→MM,20→XX,6→VI2000 \to \text{MM},\quad 20 \to \text{XX},\quad 6 \to \text{VI}

    4s and 9s use subtraction: IV, IX, XL, XC, CD, CM.

  3. Join the symbols

    2026=MMXXVI2026 = \text{MMXXVI}

About the Roman numeral converter

Roman numerals write numbers with seven letters: I = 1, V = 5, X = 10, L = 50, C = 100, D = 500 and M = 1000. To convert a number, the converter splits it into thousands, hundreds, tens and ones and writes each place separately; a 4 or 9 puts a smaller letter before a larger one, so 40 is XL and 900 is CM. To read a numeral, it adds the letters from left to right and subtracts any letter that stands before a larger one.

The default, 2026, splits into 2000 + 20 + 6 and becomes MMXXVI. The usual uses are years on buildings and in film credits, clock faces, chapter numbers and outlines. Reading MCMXCIV gives 1000 + 900 + 90 + 4 = 1994.

Standard numerals stop at 3999 (MMMCMXCIX). With the overline option a bar multiplies letters by 1000, so V̅ = 5000, up to 3,999,999. Non-standard numerals such as IIII or IC are still read, and the standard spelling is shown next to the value.

How to convert between numbers and Roman numerals

Split the number into thousands, hundreds, tens and ones, and write each part in Roman letters: 2026 = 2000 + 20 + 6 = MM + XX + VI = MMXXVI. To read a numeral, add the letter values, subtracting any letter that stands before a larger one: MCMXCIV = 1000 + 900 + 90 + 4 = 1994.

Roman numeral letters and subtractive pairs

Seven letters supply every value. The system has no zero and no place-value digits, so a numeral is a sum of letter values.

LetterValue
I1
V5
X10
L50
C100
D500
M1000

Standard form writes values from largest to smallest and adds them: XVI = 10 + 5 + 1 = 16. Six pairs subtract instead: IV = 4, IX = 9, XL = 40, XC = 90, CD = 400 and CM = 900.

I, X, C and M repeat at most three times in a row, and V, L and D never repeat. That is why 4 is IV, not IIII, and why the largest standard numeral is 3999, MMMCMXCIX.

How to write a number in Roman numerals

Convert one place value at a time and join the parts. 1994 = 1000 + 900 + 90 + 4 = M + CM + XC + IV = MCMXCIV, and 49 = 40 + 9 = XL + IX = XLIX.

A letter is subtracted only from the next two larger letters: I from V and X, X from L and C, C from D and M. So 49 is not IL, and 99 is XCIX, not IC.

Roman numbers chart: 1 to 100 and common years

Every number from 1 to 100, then subtractive examples, well-known years and 3999, the largest standard numeral:

NumberStandard Roman numeral
1I
2II
3III
4IV
5V
6VI
7VII
8VIII
9IX
10X
11XI
12XII
13XIII
14XIV
15XV
16XVI
17XVII
18XVIII
19XIX
20XX
21XXI
22XXII
23XXIII
24XXIV
25XXV
26XXVI
27XXVII
28XXVIII
29XXIX
30XXX
31XXXI
32XXXII
33XXXIII
34XXXIV
35XXXV
36XXXVI
37XXXVII
38XXXVIII
39XXXIX
40XL
41XLI
42XLII
43XLIII
44XLIV
45XLV
46XLVI
47XLVII
48XLVIII
49XLIX
50L
51LI
52LII
53LIII
54LIV
55LV
56LVI
57LVII
58LVIII
59LIX
60LX
61LXI
62LXII
63LXIII
64LXIV
65LXV
66LXVI
67LXVII
68LXVIII
69LXIX
70LXX
71LXXI
72LXXII
73LXXIII
74LXXIV
75LXXV
76LXXVI
77LXXVII
78LXXVIII
79LXXIX
80LXXX
81LXXXI
82LXXXII
83LXXXIII
84LXXXIV
85LXXXV
86LXXXVI
87LXXXVII
88LXXXVIII
89LXXXIX
90XC
91XCI
92XCII
93XCIII
94XCIV
95XCV
96XCVI
97XCVII
98XCVIII
99XCIX
100C
400CD
499CDXCIX
900CM
944CMXLIV
1776MDCCLXXVI
1912MCMXII
1994MCMXCIV
2024MMXXIV
2025MMXXV
2026MMXXVI
3999MMMCMXCIX

Overlines for numbers above 3,999

An overline, or vinculum, multiplies the letters under it by 1000: 4000 is I̅V̅, 5000 is V̅ and 50,000 is L̅. In 4026 = I̅V̅XXVI, only the thousands are overlined.

The notation reaches 3,999,999, written M̅M̅M̅C̅M̅X̅C̅I̅X̅CMXCIX. MMMM breaks the three-repeat rule: it reads as 4000, but the standard form is I̅V̅.

In typed text, each overlined letter is followed by a combining overline character, U+0305 in Unicode. A bar typed before a letter, or underscore notation such as _V, is not an overline.

Nonstandard numerals such as IIII and IC

Numerals are read with one rule: subtract a letter that is smaller than the letter after it, and add every other letter. That gives IIII = 4, IC = 99 and IIV = 5, whose standard spellings are IV, XCIX and V.

A value is not a validity check. Clock faces often show IIII for four, but IC is not standard form. For schoolwork, chapter headings or an inscription, use the standard spelling.

Writing years and dates in Roman numerals

A year is one number: 2026 is MMXXVI and 1776 is MDCCLXXVI. For a full date, convert the day, month and year separately. In day/month/year order, 3 October 2026 becomes III, X and MMXXVI, joined with whatever separator you use, such as III.X.MMXXVI.

To count the days between two dates, use the days between dates calculator.

Checking with Excel

Excel's ROMAN function returns the classic form by default: =ROMAN(499) gives CDXCIX. Its optional form argument produces shorter, nonstandard spellings, so check which form a spreadsheet used.

The ARABIC function converts back: =ARABIC("LVII") gives 57 and =ARABIC("mcmxii") gives 1912. ARABIC returns 0 for an empty string, although Roman numerals have no zero.

What you can type

  • Upper or lower case, with or without spaces: mcmxciv and MC MXCIV both read as 1994.
  • Only the letters I, V, X, L, C, D and M. Unicode numeral characters such as Ⅳ, and text such as "Chapter IV", are not read.
  • Whole numbers from 1 to 3,999, or up to 3,999,999 with the overline option. Zero, negative numbers and fractions have no Roman form.

Worked examples

2421

Convert
Number to Roman
Number
2421
Result
MMCDXXI
Value
2,421

Checked against: Wikipedia — Roman numerals, standard-form examples (2421 = MMCDXXI)

1776 (Statue of Liberty tablet)

Convert
Number to Roman
Number
1776
Result
MDCCLXXVI

Checked against: Inscription JULY IV MDCCLXXVI on the Statue of Liberty's tablet

3999, the largest standard numeral (edge)

Convert
Number to Roman
Number
3999
Result
MMMCMXCIX

Checked against: Wikipedia — Roman numerals: MMMCMXCIX is the largest number in standard form; Excel ROMAN(3999)

XLII to a number

Convert
Roman to number
Roman numeral
XLII
Result
42
Value
42
Standard Roman form
XLII

Checked against: XL = 40, II = 2

Questions

What is 2026 in Roman numerals?

MMXXVI: MM = 2000, XX = 20 and VI = 6. Years are converted one place at a time, so 1999 is MCMXCIX (1000 + 900 + 90 + 9) rather than MIM, and 2000 is simply MM. The same rule gives MDCCLXXVI for 1776, the year inscribed on the tablet held by the Statue of Liberty.

What is the largest Roman numeral?

In standard form the largest number is 3999, written MMMCMXCIX, because there is no letter for 5000 and a letter repeats at most three times. Excel's ROMAN function returns #VALUE! above 3999 for the same reason. Larger numbers used an overline (vinculum) that multiplies by 1000: V̅ is 5000 and I̅V̅ is 4000, which takes this converter up to 3,999,999.

Is 4 written IV or IIII?

IV is the standard form; IIII is the additive form, and both mean 4. Standard form uses only six subtractive pairs: IV, IX, XL, XC, CD and CM. Many clock faces still show IIII for four o'clock while using IX for nine, a practice that goes back to clocks such as the late 14th-century Wells Cathedral clock. The converter reads IIII as 4 and gives IV as the standard spelling.

Why is 99 written XCIX and not IC?

Standard form lets a letter be subtracted only from the next two larger letters: I from V and X, X from L and C, and C from D and M. So 99 is 90 + 9 = XC + IX = XCIX, and 49 is XLIX rather than IL. Excel's ROMAN function breaks the rule only on request: its form 4 writes 499 as ID, while the default form gives CDXCIX.

Is there a Roman numeral for zero?

No. The Roman system had no symbol for zero, so the converter starts at 1. Medieval scholars wrote the Latin word nulla ("none") instead: Dionysius Exiguus used it in 525, and around 725 Bede or a colleague abbreviated it to the letter N.

About this calculator

I=1, V=5, X=10L=50, C=100, D=500, M=1000IV=5−1=4,XC=100−10=90\begin{gathered}\mathrm{I}=1,\ \mathrm{V}=5,\ \mathrm{X}=10 \\ \mathrm{L}=50,\ \mathrm{C}=100,\ \mathrm{D}=500,\ \mathrm{M}=1000 \\ \mathrm{IV}=5-1=4,\quad \mathrm{XC}=100-10=90\end{gathered}

Sources

  1. Wikipedia — Roman numerals (standard form)
  2. Microsoft Excel ROMAN and ARABIC functions

Checked against references

This calculator includes 8 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.