Roman Numerals Converter

Convert between decimal numbers and Roman numerals (1-3999).

Back to all tools on ToolForge

More in Unit Converters

Decimal to Roman

Roman:

Roman to Decimal

Decimal:

About Roman Numerals Converter

Roman numerals are a numeric system originating in ancient Rome that uses combinations of letters from the Latin alphabet to represent values. This converter translates between modern decimal numbers (1-3999) and their Roman numeral equivalents.

Roman Numeral Symbols

Roman numerals use seven letters from the Latin alphabet:

Symbol Value Latin Name
I 1 unus
V 5 quinque
X 10 decem
L 50 quinquaginta
C 100 centum
D 500 quingenti
M 1000 mille

Conversion Rules

Roman numerals follow specific rules for combining symbols:

Rule Description Example
Additive Notation Symbols of equal or lesser value are added VI = 5+1 = 6
Subtractive Notation Smaller before larger means subtraction IV = 5-1 = 4
Repetition Limit I, X, C, M can repeat up to 3 times III = 3, but 4 = IV
No Repeat Rule V, L, D cannot be repeated 10 = X, not VV
Descending Order Write largest to smallest (left to right) XVI = 16, not VIX

Subtractive Combinations

Six specific subtractive combinations are used in standard Roman numerals:

Combination Calculation Value
IV 5 - 1 4
IX 10 - 1 9
XL 50 - 10 40
XC 100 - 10 90
CD 500 - 100 400
CM 1000 - 100 900

Decimal to Roman Conversion Algorithm

JavaScript Implementation:

const ROMAN_MAP = [
  ["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]
];

function toRoman(num) {
  let result = "";
  for (let i = 0; i < ROMAN_MAP.length; i++) {
    const [symbol, value] = ROMAN_MAP[i];
    while (num >= value) {
      result += symbol;
      num -= value;
    }
  }
  return result;
}

// Examples:
toRoman(2024);  // "MMXXIV"
toRoman(1994);  // "MCMXCIV"
toRoman(444);   // "CDXLIV"
toRoman(3999);  // "MMMCMXCIX"

Roman to Decimal Conversion Algorithm

JavaScript Implementation:

function toDecimal(roman) {
  const ROMAN_VALUES = {
    'M': 1000, 'D': 500, 'C': 100, 'L': 50,
    'X': 10, 'V': 5, 'I': 1
  };

  let result = 0;
  let prevValue = 0;

  // Process from right to left
  for (let i = roman.length - 1; i >= 0; i--) {
    const value = ROMAN_VALUES[roman[i].toUpperCase()];
    if (value < prevValue) {
      result -= value;  // Subtractive notation
    } else {
      result += value;
    }
    prevValue = value;
  }

  return result;
}

// Examples:
toDecimal("MMXXIV");   // 2024
toDecimal("MCMXCIV");  // 1994
toDecimal("CDXLIV");   // 444

Conversion Examples

Common Numbers:
  1 = I           25 = XXV         100 = C
  2 = II          30 = XXX         500 = D
  3 = III         40 = XL          1000 = M
  4 = IV          50 = L           2000 = MM
  5 = V           60 = LX          3000 = MMM
  6 = VI          90 = XC
  9 = IX          99 = XCIX
  10 = X          100 = C
  14 = XIV        500 = D
  19 = XIX        999 = CMXCIX
  20 = XX         1994 = MCMXCIV
  21 = XXI        2024 = MMXXIV
  44 = XLIV       3999 = MMMCMXCIX

Year Examples:
  1776 = MDCCLXXVI (US Declaration of Independence)
  1969 = MCMLXIX (Moon landing)
  2000 = MM (Millennium)
  2024 = MMXXIV (example year)

Historical Background

Roman numerals originated in ancient Rome around 500 BC and remained the primary numbering system in Europe until the 14th century when Arabic numerals (0-9) were adopted. The system evolved from Etruscan numerals and used tally-mark origins:

Modern Applications

Application Example
Book Chapters/Outlines Chapter I, Section IV, Appendix XII
Movie/TV Copyright MCMLXXXV (1985) on end credits
Monarchs/Popes Elizabeth II, Pope Francis I
Super Bowl Super Bowl LVIII (58)
Clock Faces IIII instead of IV on some clocks
Music Theory Chord progressions: I-IV-V-I
Academic Outlines I. Introduction, II. Methods, III. Results
Olympic Games Games of the XXXII Olympiad

Clock Face Convention

Many clock faces use IIII instead of IV for the 4 o'clock position. Theories for this convention include:

Common Use Cases

Limitations

How to Use Roman Numerals Converter

  1. Decimal to Roman: Enter a number (1-3999) and click "To Roman" to convert.
  2. Roman to Decimal: Enter Roman numerals and click "To Decimal" to convert.
  3. Verify results: Check the converted value for accuracy.

Tips

Frequently Asked Questions

How do you convert decimal to Roman numerals?
To convert decimal to Roman numerals, repeatedly subtract the largest possible Roman numeral value from the number. Start with 1000 (M), then 900 (CM), 500 (D), 400 (CD), 100 (C), 90 (XC), 50 (L), 40 (XL), 10 (X), 9 (IX), 5 (V), 4 (IV), and 1 (I). For example, 2024 = 1000+1000+10+10+1+1+1+1 = MMXXIV.
What are the Roman numeral symbols?
Roman numerals use seven symbols: I=1, V=5, X=10, L=50, C=100, D=500, M=1000. Numbers are formed by combining these symbols. When a smaller value precedes a larger value, it's subtracted (IV=4, IX=9, XL=40, XC=90, CD=400, CM=900). Otherwise, values are added.
Why does Roman numerals only go to 3999?
Traditional Roman numerals are limited to 3999 (MMMCMXCIX) because the Romans didn't have a standard notation for larger numbers. While extensions exist (like using a bar over numerals to multiply by 1000), the standard system used in most contexts today caps at 3999 for simplicity and compatibility.
What are the rules for writing Roman numerals?
Key rules: 1) Symbols I, X, C, M can repeat up to 3 times; V, L, D cannot repeat. 2) Subtractive notation: IV(4), IX(9), XL(40), XC(90), CD(400), CM(900). 3) Read left to right, largest to smallest. 4) Only one smaller value can precede a larger value for subtraction.
Where are Roman numerals still used today?
Roman numerals appear in: book chapters and outlines, movie/TV show copyright dates, monarch and pope names (Queen Elizabeth II), Super Bowl numbering, clock faces, formal events (Oscars, Olympics), music theory (chord progressions), and academic outlines.
How do you read Roman numerals?
Read Roman numerals left to right. If a symbol is followed by one of equal or lesser value, add them (VI = 5+1 = 6). If followed by a greater value, subtract it (IV = 5-1 = 4). Group subtractive pairs first, then add all values: MCMXCIV = 1000+(1000-100)+(100-10)+4 = 1994.