Convert between numbers and Roman numerals.
N = Σ (value_i × count_i) where each value_i is chosen greedily from the table: M=1000, CM=900, D=500, CD=400, C=100, XC=90, L=50, XL=40, X=10, IX=9, V=5, IV=4, I=1
Roman numerals are built by mapping integers to a fixed set of symbol values and then greedily subtracting the largest possible symbol value at each step. Seven base symbols plus six subtractive pairs cover all integers from 1 to 3,999.
Conversion algorithm (integer → Roman numeral):
Decoding algorithm (Roman numeral → integer):
2024 ÷ M(1000): fits twice → MM, remainder 24 24 ÷ X(10): fits twice → XX, remainder 4 4 ÷ IV(4): fits once → IV, remainder 0 Result string: MM + XX + IV = MMXXIV
Result: 2024 = MMXXIV
The number 2024 is written as MMXXIV in Roman numerals. Two M symbols account for 2000, two X symbols add 20, and the subtractive pair IV represents 4. No D, C, L, or other symbols are needed because 2024 contains no hundreds, no fifties, and no fives. You can verify by decoding: M+M+X+X+I(subtracted before V) = 1000+1000+10+10+(5−1) = 2024 ✓
Roman numerals originated in ancient Rome and were the dominant numeral system in Europe throughout the Middle Ages. They are derived from earlier Etruscan symbols and use letters from the Latin alphabet: I, V, X, L, C, D, and M.
| Symbol | Value | |--------|-------| | I | 1 | | V | 5 | | X | 10 | | L | 50 | | C | 100 | | D | 500 | | M | 1000 |
The classical system uses six subtractive pairs to avoid four-character repetition:
Only I, X, and C may be used subtractively, and only before the next two higher denominations.
Standard Roman numerals represent integers 1 through 3,999. Numbers ≥ 4,000 historically required a vinculum (overline) to multiply by 1,000, but this is rarely used today. Zero and negative numbers have no representation in the classical system.
Roman numerals appear on clock and watch faces, in film and TV copyright years, for naming monarchs and popes (e.g., Elizabeth II, Pope John Paul II), book chapters, Super Bowl numbering, and formal outlines.
MCMXCIX = M(1000) + CM(900) + XC(90) + IX(9) = **1999**.
2025 = MM(2000) + XX(20) + V(5) = **MMXXV**.
XL = 40, II = 2, so XLII = **42**.
100 is simply **C**, from the Latin word *centum* (hundred).
500 is represented by **D**, derived from the Latin *quingenti* or from the Etruscan symbol for 500.
The standard Roman numeral system represents integers up to **3,999** (MMMCMXCIX). Numbers 4,000 and above require non-standard extensions such as a vinculum (bar over a symbol) to multiply its value by 1,000.
The number 4 is written **IV** — the subtractive notation where I (1) placed before V (5) means 5 − 1 = 4. Writing IIII is technically non-standard in modern usage, though it appears on some clock faces.
No. The Roman system has no symbol for zero. The concept of zero as a number was developed independently in India and later popularized through Arabic mathematics, which is why our modern digits are called Arabic numerals.
Classical Roman numerals represent only positive integers. The Romans did use a separate duodecimal fraction system based on the *uncia* for practical measurements, but it is not part of the standard numeral conversion used today.
The use of IIII on clock faces is a long-standing tradition thought to date from the 14th century. Theories include visual balance (IIII mirrors VIII on the opposite side), ease of casting symmetrical moulds, or simply a royal preference. Both forms are considered acceptable on timepieces.
Only sources that have been reviewed are shown. Unverified citations are never published.