Hex Addition Calculator
Add two hexadecimal numbers and get the sum in hex.
Developer Tools Runs in your browser
How do you add two hexadecimal numbers?
This calculator adds two hex numbers as integers and formats the sum back in hex. 0x1A + 0x2F = 0x49: A plus F makes 25, which is hex 19, so write 9 and carry 1. Prefixes are optional and operands may differ in length; adding a one-byte offset to a four-byte base address works fine.
How to use the Hex Addition
- 1 Type one hex number into A and another into B.
- 2 The sum is computed base-16 and shown with a 0x prefix.
- 3 Adjust either operand; the total follows along.
- 4 Copy the sum when it looks right.
What you can use it for
- Adding offsets to base memory addresses.
- Totalling byte sizes reported in hex.
- Finding the end address of a hex range.
- Practising base-16 arithmetic by hand, then checking it.
Frequently asked questions
How does carrying work in hex addition?
Columns roll over at 16. 0xF + 0x1 is 0x10, and 0xFF + 0x01 is 0x100, exactly parallel to 9 + 1 and 99 + 1 in decimal.
Can the operands be different lengths?
Yes. Both are parsed to integers before adding, so digit counts never have to match; 0xFFFF + 0x1 gives 0x10000.
Is the 0x prefix required?
No, and case is ignored too: 1a, 1A and 0x1A all mean twenty-six. Non-hex characters in either field blank the result.
Related tools
More Developer Tools
More tools like this:
All Developer Tools