Hex Calculator
Result: 1423
- Hex A
- 8AB
- Hex B
- B78
- Decimal A
- 2219
- Decimal B
- 2936
- Hex value
- 1423
- Decimal value
- 5155
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
- Choose Hexadecimal arithmetic, Hexadecimal to decimal, or Decimal to hexadecimal.
- Enter the value or values. For arithmetic, choose an operation.
- Click Calculate.
- 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
| Hex | Binary | Decimal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 3 | 11 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| A | 1010 | 10 |
| B | 1011 | 11 |
| C | 1100 | 12 |
| D | 1101 | 13 |
| E | 1110 | 14 |
| F | 1111 | 15 |
Worked conversions
| EX: | Convert decimal 1500 to hex |
|---|---|
| 1500 | 5DC |
| EX: | Convert hex 1024 to decimal |
|---|---|
| 1024 | 4132 |
Hex multiplication examples
| × | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 2 | 2 | 4 | 6 | 8 | A | C | E |
| 3 | 3 | 6 | 9 | C | F | 12 | 15 |
| 4 | 4 | 8 | C | 10 | 14 | 18 | 1C |
| 5 | 5 | A | F | 14 | 19 | 1E | 23 |
| 6 | 6 | C | 12 | 18 | 1E | 24 | 2A |
| 7 | 7 | E | 15 | 1C | 23 | 2A | 31 |
Reference tables
Full hex multiplication table
| × | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | 10 |
| 2 | 2 | 4 | 6 | 8 | A | C | E | 10 | 12 | 14 | 16 | 18 | 1A | 1C | 1E | 20 |
| 3 | 3 | 6 | 9 | C | F | 12 | 15 | 18 | 1B | 1E | 21 | 24 | 27 | 2A | 2D | 30 |
| 4 | 4 | 8 | C | 10 | 14 | 18 | 1C | 20 | 24 | 28 | 2C | 30 | 34 | 38 | 3C | 40 |
| 5 | 5 | A | F | 14 | 19 | 1E | 23 | 28 | 2D | 32 | 37 | 3C | 41 | 46 | 4B | 50 |
| 6 | 6 | C | 12 | 18 | 1E | 24 | 2A | 30 | 36 | 3C | 42 | 48 | 4E | 54 | 5A | 60 |
| 7 | 7 | E | 15 | 1C | 23 | 2A | 31 | 38 | 3F | 46 | 4D | 54 | 5B | 62 | 69 | 70 |
| 8 | 8 | 10 | 18 | 20 | 28 | 30 | 38 | 40 | 48 | 50 | 58 | 60 | 68 | 70 | 78 | 80 |
| 9 | 9 | 12 | 1B | 24 | 2D | 36 | 3F | 48 | 51 | 5A | 63 | 6C | 75 | 7E | 87 | 90 |
| A | A | 14 | 1E | 28 | 32 | 3C | 46 | 50 | 5A | 64 | 6E | 78 | 82 | 8C | 96 | A0 |
| B | B | 16 | 21 | 2C | 37 | 42 | 4D | 58 | 63 | 6E | 79 | 84 | 8F | 9A | A5 | B0 |
| C | C | 18 | 24 | 30 | 3C | 48 | 54 | 60 | 6C | 78 | 84 | 90 | 9C | A8 | B4 | C0 |
| D | D | 1A | 27 | 34 | 41 | 4E | 5B | 68 | 75 | 82 | 8F | 9C | A9 | B6 | C3 | D0 |
| E | E | 1C | 2A | 38 | 46 | 54 | 62 | 70 | 7E | 8C | 9A | A8 | B6 | C4 | D2 | E0 |
| F | F | 1E | 2D | 3C | 4B | 5A | 69 | 78 | 87 | 96 | A5 | B4 | C3 | D2 | E1 | F0 |
| 10 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | A0 | B0 | C0 | D0 | E0 | F0 | 100 |
The row and column headings use hex notation: 10 means sixteen. For example, F × F = E1.
Source
Reference: Calculator.net — Hex Calculator.
Math Calculators
- Scientific Calculator
- Fraction Calculator
- Percentage Calculator
- Percent Error Calculator
- Random Number Generator
- Exponent Calculator
- Binary Calculator
- Hex Calculator
- Half-Life Calculator
- Quadratic Formula Calculator
- Log Calculator
- Ratio Calculator
- Root Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Rounding Calculator
- Matrix Calculator
- More Math Calculators