Roman Numeral Converter: Complete Guide to Roman Numerals
Roman numerals are one of the oldest numeral systems still in use today. From clock faces and book chapters to movie copyrights and Super Bowl numbers, this ancient system continues to surround us in modern life. Whether you need to read a building's cornerstone date, convert a year for a school project, or simply satisfy your curiosity about how this system works, this guide covers everything you need to know.
A Brief History of Roman Numerals
The Roman numeral system originated in ancient Rome around the 8th century BCE and evolved over centuries. Unlike our modern Hindu-Arabic numeral system, Roman numerals are not positional — each symbol represents a fixed value regardless of where it appears, though its position relative to other symbols affects the total.
The Seven Basic Symbols
| Roman Numeral | Value |
|---|---|
| I | 1 |
| V | 5 |
| X | 10 |
| L | 50 |
| C | 100 |
| D | 500 |
| M | 1,000 |
Rules for Writing Roman Numerals
Rule 1: Addition Principle
When a symbol of equal or lesser value appears after a larger symbol, add the values together. The symbols are arranged in descending order from left to right.
Rule 2: Subtraction Principle
When a symbol of lesser value appears before a larger symbol, subtract the smaller from the larger. Only specific subtractive pairs are allowed.
Rule 3: No More Than Three Repeats
The symbols I, X, C, and M can be repeated up to three times in a row. The symbols V, L, and D can never be repeated.
Invalid: IIII (use IV), XXXX (use XL), VV (not a valid construction)
Rule 4: Only One Subtractive Pair
Only one smaller-value symbol may precede a larger one. You cannot write IIX for 8 (use VIII instead), or CDD for 400 (use CD).
Complete Roman Numeral Chart (1-100)
| Number | Roman | Number | Roman | Number | Roman |
|---|---|---|---|---|---|
| 1 | I | 11 | XI | 30 | XXX |
| 2 | II | 12 | XII | 40 | XL |
| 3 | III | 14 | XIV | 50 | L |
| 4 | IV | 15 | XV | 60 | LX |
| 5 | V | 19 | XIX | 70 | LXX |
| 6 | VI | 20 | XX | 80 | LXXX |
| 7 | VII | 21 | XXI | 90 | XC |
| 8 | VIII | 25 | XXV | 99 | XCIX |
| 9 | IX | 28 | XXVIII | 100 | C |
| 10 | X | 29 | XXIX |
Converting Numbers to Roman Numerals
The conversion process works by breaking the number into thousands, hundreds, tens, and ones, then converting each part independently.
Step-by-Step Conversion
Thousands: 2000 = MM
Hundreds: 0 = (nothing)
Tens: 20 = XX
Ones: 6 = VI
Result: MMXXVI
Thousands: 1000 = M
Hundreds: 900 = CM
Tens: 40 = XL
Ones: 9 = IX
Result: MCMXLIX
Conversion Table for Reference
| Digit | Units (1s) | Tens (10s) | Hundreds (100s) | Thousands (1000s) |
|---|---|---|---|---|
| 0 | ||||
| 1 | I | X | C | M |
| 2 | II | XX | CC | MM |
| 3 | III | XXX | CCC | MMM |
| 4 | IV | XL | CD | — |
| 5 | V | L | D | — |
| 6 | VI | LX | DC | — |
| 7 | VII | LXX | DCC | — |
| 8 | VIII | LXXX | DCCC | — |
| 9 | IX | XC | CM | — |
Converting Roman Numerals to Numbers
To read a Roman numeral, scan from left to right, adding values. If a smaller value appears before a larger one, subtract it instead of adding.
M = 1000
CM = 900 (1000 − 100)
XL = 40 (50 − 10)
IV = 4 (5 − 1)
Total: 1000 + 900 + 40 + 4 = 1,944
MMM = 3000, DCCC = 800, LXXX = 80, VIII = 8
Total: 3,888 (this is the longest standard Roman numeral below 4000)
Numbers Above 3,999
The standard Roman numeral system only goes up to 3,999 (MMMCMXCIX) because there is no symbol larger than M (1,000) in the classical system. However, several extensions exist:
- Vinculum (overline): Placing a bar over a numeral multiplies it by 1,000. V̄ = 5,000, X̄ = 10,000, M̄ = 1,000,000
- Apostrophus: An ancient Roman notation using CƆ (1,000) and CƆƆ (10,000)
- Modern conventions: Some sources use underscore prefixes, but there is no universally accepted standard
For practical purposes, most applications of Roman numerals stay within the 1–3,999 range.
Programming a Roman Numeral Converter
Building a Roman numeral converter is a classic programming exercise. Here is the standard approach:
JavaScript
function toRoman(num) {
const map = [[1000,'M'],[900,'CM'],[500,'D'],[400,'CD'],
[100,'C'],[90,'XC'],[50,'L'],[40,'XL'],
[10,'X'],[9,'IX'],[5,'V'],[4,'IV'],[1,'I']];
let result = '';
for (const [value, symbol] of map) {
while (num >= value) {
result += symbol;
num -= value;
}
}
return result;
}
Python
def to_roman(n):
vals = [(1000,'M'),(900,'CM'),(500,'D'),(400,'CD'),
(100,'C'),(90,'XC'),(50,'L'),(40,'XL'),
(10,'X'),(9,'IX'),(5,'V'),(4,'IV'),(1,'I')]
result = ''
for v, s in vals:
while n >= v:
result += s
n -= v
return result
Modern Uses of Roman Numerals
- Clock faces: Most analog clocks use Roman numerals, with IIII often substituted for IV (a tradition dating to early clockmakers)
- Book chapters and volumes: Front matter uses lowercase Roman numerals (i, ii, iii), main content uses Arabic
- Movie sequels: Rocky II, Star Wars Episode IV, Godfather Part III
- Copyright years: Film and TV credits often display years in Roman numerals (MCMXLVI)
- Monarchs and popes: King Charles III, Pope Francis I
- Sports: Super Bowl LIX (59), Olympic Games (XXXIII Olympiad)
- Building cornerstones: Many buildings display their construction year in Roman numerals
- Outlines and lists: Legal documents, academic papers, and formal outlines use Roman numerals for major sections
Fun Facts
- The Romans did not have a symbol for zero — the concept arrived in Europe via Arab scholars centuries later
- The word "nulla" (Latin for "nothing") was sometimes used to represent zero in Roman contexts
- The year 2026 in Roman numerals is MMXXVI
- The longest year in Roman numerals (under 4000) is 3888: MMMDCCCLXXXVIII (15 characters)
- There is no Roman numeral for fractions in everyday use, though Romans did have a duodecimal fractional system for currency
Conclusion
Roman numerals are a remarkable surviving piece of ancient civilization that continues to serve practical and decorative purposes in the modern world. Understanding the seven basic symbols, the addition and subtraction principles, and the repeat rules gives you the ability to read and write any Roman numeral. Whether you are decoding a historical inscription, numbering your own document, or simply impressing friends at trivia night, this knowledge connects you to over two thousand years of mathematical tradition.
Try Our Free Roman Numeral Converter
Instantly convert any number to Roman numerals and back. Supports numbers up to 3,999.
Open Roman Numeral Converter →