Hex Calculator Formula Guide
The Hex Calculator helps you perform arithmetic and logical operations directly in hexadecimal (base-16). It is useful for programmers, electronics engineers, and computer science students who often deal with low-level data or binary systems.
1. Arithmetic Operations in Hex
The rules are the same as in decimal, but values are expressed in base-16 (digits 0–9 and A–F).
-
Addition:
Example:
-
Subtraction:
Example:
-
Multiplication:
Example:
-
Division (shows quotient and remainder):
Example:
2. Base Conversions
The calculator can instantly convert between:
-
Hex ⇄ Decimal
-
Hex ⇄ Binary
-
Hex ⇄ Octal
Example:
3. Bitwise Operations
Bitwise functions work at the binary level:
-
AND: keeps bit = 1 only if both are 1
-
OR: keeps bit = 1 if either is 1
-
XOR: keeps bit = 1 if different
-
NOT: flips all bits
-
SHL / SHR: shift bits left or right
Example: