# Roman Numeral Math API

> Roman Numeral Math computes addition, subtraction, multiplication, and division between two Roman numerals. It returns the calculated result and complete equation in both Roman numeral and standard integer formats.

**Endpoint:** `GET https://api.apiverve.com/v1/romannumeralmath`  
**Category:** Math/Calculations  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/romannumeralmath

## Overview

Roman Numeral Math lets you add, subtract, multiply and divide Roman numerals without writing the conversion yourself. Send two numerals and an operation and get back the answer as a Roman numeral and as a number, plus the full equation written both ways, such as XIV + IX = XXIII next to 14 + 9 = 23.

It suits Roman arithmetic exercises in education apps, history and puzzle games, clock and date features that display Roman numerals, and anyone who wants to calculate Roman numerals or add Roman numerals from a spreadsheet or script. Both inputs are checked for proper form first, so a malformed numeral is reported instead of being guessed at.

Everything is available on the Free plan. Each response echoes the two numerals, their numeric values and the operation applied, so the result can be shown with its working. Answers are limited to the range standard Roman numerals can express, and a result outside it returns an explanation rather than an invented numeral.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/romannumeralmath?roman1=XIV&roman2=VI&operation=add" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `roman1` | string | Yes | The first Roman numeral |
| `roman2` | string | Yes | The second Roman numeral |
| `operation` | string | No | Operation to perform. default add. One of: add, subtract, multiply, divide |

## Response fields

- `roman1` — string · First operand as it was supplied, in Roman numerals
- `roman2` — string · Second operand as it was supplied, in Roman numerals
- `roman1_value` — number · First operand converted to a number
- `roman2_value` — number · Second operand converted to a number
- `operation` — string · The arithmetic operation that was applied
- `result_number` — number · Result of the operation as a number
- `result_roman` — string · Result of the operation in Roman numerals
- `equation_numeric` — string · Mathematical equation in numeric format
- `equation_roman` — string · Mathematical equation in Roman numeral format

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "roman1": "XIV",
    "roman2": "VI",
    "roman1_value": 14,
    "roman2_value": 6,
    "operation": "add",
    "result_number": 20,
    "result_roman": "XX",
    "equation_numeric": "14 + 6 = 20",
    "equation_roman": "XIV + VI = XX"
  }
}
```

## Use cases

- **Educational Tools** — Teach Roman numeral arithmetic and ancient mathematics in interactive learning applications
- **Historical Calculators** — Create calculators for historical contexts requiring Roman numeral operations
- **Puzzle Games** — Build mathematical puzzles and games using Roman numeral arithmetic
- **Format Conversion** — Perform calculations while maintaining Roman numeral formatting for specialized applications

## SDKs

- **npm** — `npm install @apiverve/romannumeralmath` (https://www.npmjs.com/package/@apiverve/romannumeralmath)
- **PyPI** — `pip install apiverve-romannumeralmath` (https://pypi.org/project/apiverve-romannumeralmath/)
- **NuGet** — `dotnet add package APIVerve.API.RomanNumeralMath` (https://www.nuget.org/packages/APIVerve.API.RomanNumeralMath)
- **Source** — https://github.com/apiverve/romannumeralmath-api

## More

- Full reference: https://docs.apiverve.com/ref/romannumeralmath
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
