Roman Numeral Converter

Roman Numeral Converter

Leading AI Skill PRO

Enter Calculation

Formula

Roman=greedy(Number),1≤Number≤3999\text{Roman} = \operatorname{greedy}\!\left(\text{Number}\right),\qquad 1 \le \text{Number} \le 3999
Usage stats

Advertisement

Results

Roman Numeral
MMXXIV
standard form
Decimal value 2,024
Roman numeral MMXXIV

Report an error on this page

What is the Roman Numeral Converter?

This tool converts everyday decimal numbers into Roman numerals and converts Roman numerals back into ordinary numbers. It uses standard subtractive notation (the form used on clocks, book chapters, movie credits and monuments) and works for any integer from 1 to 3999 — the conventional range expressible without bars or special symbols.

How to use it

Pick a direction. For Number → Roman, type a whole number between 1 and 3999. For Roman → Number, type a Roman numeral such as MCMXCIV (case is ignored). The converter shows both the Roman numeral and its decimal value so you can double-check the result.

The formula explained

Roman numerals are built from seven symbols: \(\text{I}=1\), \(\text{V}=5\), \(\text{X}=10\), \(\text{L}=50\), \(\text{C}=100\), \(\text{D}=500\) and \(\text{M}=1000\). To convert a number, we use a greedy algorithm: starting from the largest value, we repeatedly subtract the biggest value-symbol that still fits and append its symbol:

$$\text{Roman} = \operatorname{greedy}\!\left(\text{Number}\right) = \sum_{k}\; \text{sym}_k \times \left\lfloor \frac{\text{remainder}}{\text{val}_k} \right\rfloor$$

$$\text{Roman} = \operatorname{greedy}\!\left(\text{Number}\right),\qquad 1 \le \text{Number} \le 3999$$

To handle subtractive pairs we include \(\text{CM}=900\), \(\text{CD}=400\), \(\text{XC}=90\), \(\text{XL}=40\), \(\text{IX}=9\) and \(\text{IV}=4\) in the list. This guarantees the canonical shortest spelling — for example 4 becomes IV, not IIII. The reverse conversion sums each token's value:

$$\text{Number} = \sum_{\text{token} \,\in\, \text{Roman Numeral}} \text{value}(\text{token})$$

Advertisement
Chart of the seven Roman numeral symbols and their values
The seven Roman numeral symbols and the decimal value each represents.

Worked example

Convert 2024: \(2024 - 1000 = 1024\) (M), \(- 1000 = 24\) (MM), then \(24 - 10 = 14\) (X), \(- 10 = 4\) (XX), then 4 matches IV. Result: MMXXIV.

Advertisement
Diagram showing subtractive notation pairs like IV and IX
Subtractive notation: a smaller symbol before a larger one is subtracted.

Common Roman Numerals Reference

Standard Roman numerals use seven symbols: I = 1, V = 5, X = 10, L = 50, C = 100, D = 500 and M = 1000. Subtractive notation places a smaller symbol before a larger one (IV = 4, IX = 9, XL = 40, XC = 90, CD = 400, CM = 900). In this standard form the largest number that can be written is 3999, because a symbol is not repeated more than three times in a row.

Decimal Roman numeral Note
1 I Clock / chapter numeral
2 II Clock / chapter numeral
3 III Clock / chapter numeral
4 IV 5 − 1 (subtractive)
5 V Clock / chapter numeral
6 VI 5 + 1
7 VII 5 + 2
8 VIII 5 + 3
9 IX 10 − 1 (subtractive)
10 X Base symbol
11 XI 10 + 1
12 XII 10 + 2
20 XX 10 + 10
30 XXX 10 + 10 + 10
40 XL 50 − 10 (subtractive)
50 L Base symbol
90 XC 100 − 10 (subtractive)
100 C Base symbol
500 D Base symbol
900 CM 1000 − 100 (subtractive)
1000 M Base symbol
1994 MCMXCIV M + CM + XC + IV = 1000 + 900 + 90 + 4
2000 MM 1000 + 1000
2024 MMXXIV 1000 + 1000 + 10 + 10 + 4
3999 MMMCMXCIX Largest standard value: 3000 + 900 + 90 + 9

Clock faces sometimes show 4 as IIII instead of IV. This is a traditional variant, not part of the standard subtractive form used by this converter.

FAQ

Why only up to 3999? Standard Roman numerals top out at MMMCMXCIX (3999). Larger numbers traditionally need a bar (vinculum) over symbols to multiply by 1000, which isn't part of the basic system.

Is there a Roman numeral for zero? No. The Romans had no symbol for zero; the system has no place for it.

Is IIII ever correct? IIII appears on some clock faces for aesthetic balance, but the mathematically standard form for 4 is IV, which this tool produces.

Last updated:

Most popular in Utilities

View all Utilities calculators