How to use this calculator
- Choose number-to-Roman or Roman-to-number mode.
- Enter an integer from 1 to 3,999 or standard Roman notation.
- Correct any validation message before using the result.
- Copy the converted value if needed.
- Use overbar or historical variants outside this tool.
Formula and methodology
Greedy encoding subtracts the largest Roman value available, including the standard subtractive pairs IV, IX, XL, XC, CD and CM.
Worked example
2026 converts to MMXXVI: 2,000 + 20 + 6.
Method applied: Greedy encoding subtracts the largest Roman value available, including the standard subtractive pairs IV, IX, XL, XC, CD and CM.
Reference table
| Variable or item | Definition |
|---|---|
| I, V, X | 1, 5, 10 |
| L, C, D, M | 50, 100, 500, 1,000 |
| Subtractive pairs | IV, IX, XL, XC, CD, CM |
Sources and assumptions
Conventional modern Roman numeral notation for integers from I through MMMCMXCIX.
Practical guidance and common mistakes
The decoder re-encodes its result and rejects non-standard strings such as IIII, helping distinguish recognized canonical notation from merely additive sequences.
