Math Calculators

Hex Calculator

Choose a mode, enter hex or decimal values, and click Calculate

Result: 1423

Hex A
8AB
Hex B
B78
Decimal A
2219
Decimal B
2936
Hex value
1423
Decimal value
5155
Hex arithmetic uses whole numbers. Division returns the integer quotient and discards the remainder.

What this calculator does

The Hex Calculator performs arithmetic on base-16 numbers and converts between hexadecimal and decimal. It supports addition, subtraction, multiplication, and integer division, and it shows the decimal equivalents of the inputs and the result.

Hexadecimal, usually shortened to hex, is a base-16 number system. It uses the digits 0–9 and the letters A–F, where A represents 10, B represents 11, C represents 12, D represents 13, E represents 14, and F represents 15. Each position represents a power of 16. The hex value DAD therefore represents 13 × 256 + 10 × 16 + 13 = 3,501 in decimal.

How to use this calculator

  1. Choose Hexadecimal arithmetic, Hexadecimal to decimal, or Decimal to hexadecimal.
  2. Enter the value or values. For arithmetic, choose an operation.
  3. Click Calculate.
  4. Review the result and the decimal equivalents.

The default arithmetic example is 8AB + B78 = 1423, which is 2,219 + 2,936 = 5,155 in decimal. The conversion examples are DAD = 3,501 and 170 = AA.

Hex arithmetic

Hex arithmetic follows the same rules as decimal arithmetic, but carries and borrows happen at 16 instead of 10. When a digit reaches F, the next increment carries one to the next position. Letters are case-insensitive: 8ab and 8AB represent the same value.

A = 10    B = 11    C = 12
D = 13    E = 14    F = 15

The calculator converts each operand to an integer, performs the operation, and converts the result back to uppercase hex. Subtraction can produce a negative result, which is shown with a leading minus sign.

What the results mean

The result panel shows the answer in hex and in decimal. For arithmetic, both operands are also shown in both bases. Integer division discards the remainder, so the hex quotient is the whole-number part of the division.

Leading zeros do not change a hex value. The calculator removes unnecessary leading zeros, so 01423 is shown as 1423. Letter digits are always displayed in uppercase, regardless of how they were entered.

Assumptions and limitations

  • Inputs are whole hex or decimal integers. Fractions and decimal points are not accepted.
  • Hex values may contain only 0–9, A–F, and an optional leading minus sign.
  • Division by zero is rejected.
  • Division returns the integer quotient and discards the remainder.
  • The calculator does not interpret bit patterns as signed two's-complement integers.
  • Inputs are limited to 1,000 characters to keep the page responsive.

Frequently asked questions

Why does hex use letters?

Base 16 needs sixteen distinct symbols. The digits 0–9 provide ten, and the letters A–F provide the remaining six. Using letters avoids inventing new digit characters and is the convention used in programming and digital design.

How do I convert hex to decimal by hand?

Multiply each digit by its place value and add the results. For DAD, the place values are 256, 16, and 1. D is 13, A is 10, and D is 13, so the value is 13 × 256 + 10 × 16 + 13 = 3,501.

Is hex the same as binary?

No, but they are closely related. One hex digit represents exactly four binary bits, so hex is a compact way to write binary values. For example, the hex value F is 1111 in binary.

Does the calculator accept lowercase letters?

Yes. Both uppercase and lowercase letters are accepted. Results are always shown in uppercase for consistency.

Reference tables

Hex, binary, and decimal equivalents

HexBinaryDecimal
000
111
2102
3113
41004
51015
61106
71117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Worked conversions

EX:Convert decimal 1500 to hex
15005DC
EX:Convert hex 1024 to decimal
10244132

Hex multiplication examples

×1234567
11234567
22468ACE
3369CF1215
448C1014181C
55AF14191E23
66C12181E242A
77E151C232A31

Reference tables

Full hex multiplication table

×123456789ABCDEF10
1123456789ABCDEF10
22468ACE10121416181A1C1E20
3369CF1215181B1E2124272A2D30
448C1014181C2024282C3034383C40
55AF14191E23282D32373C41464B50
66C12181E242A30363C42484E545A60
77E151C232A31383F464D545B626970
88101820283038404850586068707880
99121B242D363F48515A636C757E8790
AA141E28323C46505A646E78828C96A0
BB16212C37424D58636E79848F9AA5B0
CC1824303C4854606C7884909CA8B4C0
DD1A2734414E5B6875828F9CA9B6C3D0
EE1C2A38465462707E8C9AA8B6C4D2E0
FF1E2D3C4B5A69788796A5B4C3D2E1F0
10102030405060708090A0B0C0D0E0F0100

The row and column headings use hex notation: 10 means sixteen. For example, F × F = E1.

Source

Reference: Calculator.net — Hex Calculator.

Math Calculators