Hex Calculator

Add, subtract, multiply and divide hexadecimal numbers and see the answer in hex, decimal, binary and octal. Example: 1A + FF = 119 in hex, which is 26 + 255 = 281.

FreeNo sign-up

How to use the Hex Calculator

  1. Type the first number using only valid hex digits (0-9 and A-F).
  2. Choose an operation and type the second number.
  3. Press Calculate to see the answer in binary, decimal, hex and octal.

Formula and method

Hexadecimal is base 16: digits 0-9 then A=10 to F=15, and each place is a power of 16. 1A = 16 + 10 = 26. The calculator converts to decimal, applies the operation and converts back.

Worked example: 1A + FF

Step Result
1A in decimal 26
FF in decimal 255
Sum 281
281 in hex 119

Hex digit values

Hex Decimal Binary
0 0 0000
1 1 0001
2 2 0010
3 3 0011
4 4 0100
5 5 0101
6 6 0110
7 7 0111
8 8 1000
9 9 1001
A 10 1010
B 11 1011
C 12 1100
D 13 1101
E 14 1110
F 15 1111

Where hex is used

Hex writes binary compactly: one hex digit equals four bits. It appears in color codes such as #FF8800, memory addresses and byte values.

Frequently asked questions

How do I add hex numbers?

Convert to decimal, add, and convert back, or add digit by digit carrying at 16.

What is FF in decimal?

255.

How do I convert hex to decimal?

Multiply each digit by its power of 16 and add.

What are A to F?

The digits 10 to 15.

Why is hex used in computing?

One hex digit equals four binary digits.

What is a hex color?

Three bytes in hex for red, green and blue, like #FF8800.

Sources

Related calculators

Browse all calculators

Related to This Article

What people say about "Hex Calculator: Add, Subtract, Multiply & Divide Hexadecimal"?

No one replied yet.

Leave a Reply