Hex Calculator (Hexadecimal Add, Subtract, Multiply & Divide)

Add, subtract, multiply or divide two hexadecimal numbers, or combine them with AND, OR and XOR. The answer is shown in hex, decimal and binary.

Results

Enter your details and click Calculate to see your results.
About This Calculator

Hex digits run 0–9 then A–F (10–15). When adding, a column that reaches 16 carries 1 into the next column, just as 10 does in decimal.

Division gives the whole-number quotient. Use mod for the remainder.

Example

Example: 1A3F + FF = 1B3E (decimal 6,974).

Assumptions

Whole numbers of any size. Letters can be upper or lower case, and a 0x prefix is optional.

Frequently Asked Questions

What is F + 1 in hex?

10 (sixteen in decimal).

How do I subtract hex numbers?

Column by column, borrowing 16 instead of 10.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile