Math / Roman Numerals

Roman Numerals calculator

Convert between standard numbers and Roman numerals in either direction.

Your answer will appear here.

SymbolValueExample
I1I = 1
V5V = 5
X10X = 10
L50L = 50
C100C = 100
D500D = 500
M1000M = 1000

Formula: Symbols: I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1,000. A smaller symbol before a larger one is subtracted; otherwise values are added.

The basics

Add, unless a smaller symbol comes first

Read a Roman numeral left to right. If a symbol is at least as large as the one after it, add it. If it is smaller, subtract it. That single rule explains IV, IX, XL, XC, CD, and CM. The converter also checks that the result is the canonical form, so non-standard strings such as IIII are rejected.

In practice

Worked examples

Input

1994 → Roman

Answer

MCMXCIV

Input

MCMXCIV → number

Answer

1,994

Good to know

Frequently asked questions

Classical Roman numerals did not use a zero symbol. Values were written with additive and subtractive combinations of I, V, X, L, C, D, and M.

Keep going