Home · Everyday · Bases, Binary & Logic · Hexadecimal Calculator & Converter
Hexadecimal Calculator & Converter
Hexadecimal arithmetic — add, subtract, multiply or divide two hex numbers, with decimal alongside.
What this calculator does
Hexadecimal arithmetic — add, subtract, multiply or divide two hex numbers, with decimal alongside. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Digits are validated against the chosen base — a binary field rejects the digit 2.
Conversion goes through the exact integer value, so results are exact for the sizes accepted.
Negative values keep their sign in every base.
Worked example
With the example inputs this page opens with, the result is 19 — result in hex. Computed in decimal (10 + 15 = 25) and written back in hexadecimal — hex arithmetic is decimal arithmetic with base-16 notation. Remainder for division is truncated, as in integer division.
Quick reference
| Figure | Value |
|---|---|
| Result in hex | 19 |
| Decimal result | 25 |
| Binary result | 11001 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Hexadecimal Calculator & Converter work?
Hexadecimal arithmetic — add, subtract, multiply or divide two hex numbers, with decimal alongside. Hex a · Hex b · Operation → Result. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Hexadecimal Calculator & Converter need?
Hex a · Hex b · Operation → Result. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Hexadecimal Calculator & Converter free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.