Hex calculator guide

How to use the Hex Calculator

The Hex Calculator works with base-16 whole numbers. It can add, subtract, multiply, divide, convert hex to decimal, convert decimal to hex, show binary output, and explain each answer with simple steps.

Open the hex calculator

Quick start

  1. Enter the first hex number using digits 0-9 and letters A-F.
  2. Choose Add, Subtract, Multiply, or Divide.
  3. Enter the second hex number.
  4. Press Calculate hex.
  5. Read the hex answer, decimal answer, binary answer, and steps.

What hexadecimal means

Hexadecimal is base 16. It uses 0-9 for the first ten values and A-F for values 10 through 15. Each place value is a power of 16, so A3 means 10 x 16 plus 3, which equals 163 in decimal.

The calculator accepts uppercase or lowercase letters. It also accepts an optional 0x prefix, so 0xFF and FF mean the same value.

Hex arithmetic

Addition, subtraction, and multiplication return a hex answer with matching decimal and binary versions. For example, A3 + 1F equals C2, which is 194 in decimal.

Hex division returns a quotient. If the division is not even, the calculator also shows the remainder. For example, 2F / A equals 4 remainder 7.

Converting hex, decimal, and binary

Use the conversion panel when you only need to change number systems. Hex to decimal turns a base-16 value such as 2A into 42. Decimal to hex turns a whole decimal number such as 42 into 2A.

The same panel also shows hex to binary. This is helpful because one hex digit maps to four binary bits, which makes hex a compact way to read binary values.

Common examples

A3 + 1F Adds two hexadecimal numbers and returns C2.
FF - 2A Subtracts 2A from FF and returns D5.
1A x 3 Multiplies 26 by 3 and returns 4E.
2F / A Divides 47 by 10 and returns 4 remainder 7.

Examples from the hex calculator

Hex addition A3 + 1F

C2

Hex subtraction FF - 2A

D5

Hex division 2F / A

4 remainder 7

Signed values

You can type a leading minus sign for simple signed whole-number calculations, such as -A + 2. This is useful for quick math, but it is not the same as fixed-width two's complement notation.

History, privacy, and copying

Recent hex answers stay visible in the page while you work. The history is kept only in the current browser tab and is not sent to a server.

Copy answer copies the hex, decimal, and binary answer so you can paste it into notes, homework, a message, or another document.