Hex Calculator
Add, subtract, multiply and divide hex numbers, with the decimal equivalents shown.
About the Hex Calculator
Enter two hexadecimal numbers and an operation. The calculator gives the result in hex, decimal and binary.
Hexadecimal (base 16) uses digits 0–9 and A–F (10–15). It's used for memory addresses, colours (#FF8800) and compact binary. Carries happen at 16: F + 1 = 10.
The formula
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
Worked example
1F4 + A7
- 500 + 167 = 667
- 667 = 29B
Questions people ask
How are negative results shown?
With a minus sign. Computers often store negatives as two's complement instead, which depends on the number of bits.
Can I enter lower-case letters?
Yes; input isn't case-sensitive.
How do I convert hex to decimal?
Multiply each digit by a power of 16: 1F4 = 1 × 256 + 15 × 16 + 4 = 500.