Arithmetic
Roman Numeral Arithmetic: Addition, Subtraction, Multiplication, and Division
The calculator translates each operand into an integer, performs exact integer arithmetic, and translates a supported positive result back. That is a modern method, not a reconstruction of ancient Roman calculation techniques. Open the Roman numeral calculator to run the examples.
Operands and operations
Operands may be Roman, decimal, or mixed. Empty strings, scientific notation, NaN, Infinity, and negative operands in standard mode are rejected. XIV + IX is 14 + 9 = 23 = XXIII. L − XVII is 33 = XXXIII. XII × VIII is 96 = XCVI. C ÷ IV is 25 = XXV. Operations use BigInt. The parser never uses eval.
Division, remainder, and comparison
For positive integers, a = bq + r with 0 ≤ r < b. X ÷ III gives quotient 3 = III and remainder 1 = I, plus the fraction 10/3. Division by zero is a validation error. XLIV compared with L is 44 < 50: XLIV is less than L. X − X is decimal 0 with no canonical numeral. V − X is −5 with no canonical numeral.
Verified examples
| Expression | Integers | Result |
|---|---|---|
| XIV + IX | 14 + 9 | 23 = XXIII |
| L − XVII | 50 − 17 | 33 = XXXIII |
| XII × VIII | 12 × 8 | 96 = XCVI |
| C ÷ IV | 100 ÷ 4 | 25 = XXV |
| X ÷ III | 10 ÷ 3 | quotient III, remainder I |
| XLIV compared with L | 44 and 50 | XLIV is less than L |
Practice arithmetic questions on the practice laboratory are graded against this same integer path. Inspect tokens first on the converter if you want to see the decomposition.
Article questions
- Is this how ancient Romans calculated?
- No. The site uses modern integer arithmetic after parsing the numerals.
- What happens if I divide by zero?
- The calculator reports a validation error.
- Can a remainder be a Roman numeral?
- Yes, when it is a supported positive integer, such as I for 1.
Verified conversions include 1 = I, 4 = IV, 9 = IX, 14 = XIV, 19 = XIX, 24 = XXIV, 29 = XXIX, 39 = XXXIX, 40 = XL, 44 = XLIV, 49 = XLIX, and 50 = L.
Further verified values: 58 = LVIII, 69 = LXIX, 89 = LXXXIX, 90 = XC, 94 = XCIV, 99 = XCIX, 100 = C, 149 = CXLIX, 399 = CCCXCIX, 400 = CD, 444 = CDXLIV.
Large standard values: 500 = D, 900 = CM, 944 = CMXLIV, 999 = CMXCIX, 1000 = M, 1987 = MCMLXXXVII, 1999 = MCMXCIX, 2024 = MMXXIV, 2026 = MMXXVI, 3999 = MMMCMXCIX.
The greedy steps for 944 are 900 = CM with remainder 44, then 40 = XL with remainder 4, then 4 = IV with remainder 0. Token values 900 + 40 + 4 sum to 944.
The greedy steps for 1987 are 1000 = M, 900 = CM, 50 = L three times as LXXX, and 5 + 1 + 1 as VII, concatenating to MCMLXXXVII.
Unsupported canonical strings include IIII, VV, IL, IC, XM, VX, IIV, IIX, IXIX, MMMM, ABC, and 123. The validator names the structural problem instead of inventing a value.
Recognized additive alternatives, kept outside strict mode, include IIII = 4, VIIII = 9, XXXX = 40, LXXXX = 90, CCCC = 400, and DCCCC = 900, still in descending place-value order.
Extended plain-text examples: 4000 = (IV), 5000 = (V), 12000 = (XII), 12500 = (XII)D, 1000000 = (M), 3999999 = (MMMCMXCIX)CMXCIX. Nested parentheses are rejected.
Leap-year checks used by the date tool: 1900 is not a leap year, 2000 is, 2028 is, and 2100 is not. January 1 of year 1 is valid. Year zero is invalid.
July 4, 2026 is VII.IV.MMXXVI in month-first order, IV.VII.MMXXVI in day-first order, and MMXXVI.VII.IV in year-first order. Reverse conversion never guesses which order you meant.
Clock-hand angles on the reference face are measured clockwise from twelve. The hour hand is 30 times the hour modulo 12, plus half a degree per minute, plus the seconds divided by 120. The minute hand is 6 times the minute plus 0.1 times the seconds. The second hand is 6 times the seconds.
Practice difficulty ranges are beginner 1–20, foundation 1–100, intermediate 1–500, advanced 1–1000, and expert 1–3999. Session lengths are 5, 10, 20, or 30 questions. Optional seeds make a session reproducible. Duplicates are avoided with a bounded retry when the pool allows it.
If ten questions are presented, eight answered, six correct, two incorrect, and two skipped, accuracy is 75 percent because skips are excluded from that denominator. Completion is 60 percent because it uses all ten questions. Those figures describe the current session only.
Printable paper sizes are US Letter at 8.5 by 11 inches and A4 at 210 by 297 millimeters, in portrait or landscape. Question counts are 10, 20, 30, 40, or 50. Answer sheets keep the same worksheet identifier as the generated document.
CSV exports prefix cells that begin with equals, plus, minus, or at-sign so spreadsheet software does not treat visitor text as a formula. SVG exports include a viewBox and escaped text. PNG widths are 800, 1600, 2400, or 3200 pixels.
Local preferences may store conversion direction, notation mode, date format, separator, chart range, practice difficulty, and print layout. Conversion history is off by default. Core tools still run if localStorage is blocked.