Hex Calculator

Hexadecimal arithmetic, with decimal equivalents shown alongside.

= 26 in decimal

= 15 in decimal

Result (hex)
29
= 41 in decimal

Hex digits run 0-9 then A-F, each position worth a power of 16 — commonly used in programming for color codes, memory addresses, and byte values.

A worked example

1A (26) plus F (15) equals 29 in hex — 41 in decimal.

Frequently asked questions

Why does hex use letters A-F?

Hexadecimal is base-16, needing 16 distinct digits — after 0-9 runs out, A through F stand in for 10 through 15, so each position can still represent a single digit even past the value 9.

Where is hex actually used?

Commonly in programming and web design — color codes (#FF5733), memory addresses, and byte values are almost always written in hex, since two hex digits map cleanly onto exactly one byte (8 bits).