Quick Answer: To calculate in hexadecimal, work in base 16 with digits 0 to 9 and A to F. Add column by column, carry whenever a column reaches 16, and borrow 16 when subtracting. For long sums or a quick check, convert to decimal or use an online hexadecimal calculator.
Key takeaways:
- Hex uses 16 digits, where A to F stand for 10 to 15.
- You carry or borrow 16, not 10, in every column.
- Convert each digit to decimal when a column sum looks confusing.
- Multiplication works like school long multiplication, using a small table of digit values.
- Always verify the answer by converting back to decimal.
Every Indian student who studies number systems in Class 11 Computer Science meets hexadecimal sooner or later. Many students are happy with converting numbers, but they freeze when a question asks them to add, subtract or multiply two hex numbers. The good news is that the method is the same one you learned in primary school, only the base changes from 10 to 16.
This guide shows how to calculate in hexadecimal step by step. You will see three fully worked examples, a digit table, common mistakes and simple habits that stop silly errors. Whether you are preparing for a school exam, a CCC or O Level paper, or GATE CS, the steps stay the same.
What You Need Before You Start
Hexadecimal is a base-16 system. It has sixteen symbols: 0 to 9, and then A, B, C, D, E and F for the values 10 to 15. The NCERT Class 11 Computer Science book introduces this system together with binary and octal, so the table below should look familiar.
| Hex digit | Decimal value | Binary (4 bits) |
|---|---|---|
| A | 10 | 1010 |
| B | 11 | 1011 |
| C | 12 | 1100 |
| D | 13 | 1101 |
| E | 14 | 1110 |
| F | 15 | 1111 |
Learn this small table by heart. Most mistakes in hex arithmetic happen because a student forgets that C is 12 or that E is 14. Once the table is in your head, the rest is just careful column work.
One more rule matters. In decimal, a column overflows at 10. In hex, a column overflows at 16. So the number after F is 10 in hex, which means one sixteen and zero ones. That single idea drives every carry and borrow you will do.
Step-by-Step: How to Add Hexadecimal Numbers
Addition is the easiest operation to start with. You write the numbers in columns, align the right-hand digits and add from right to left. If a column total is 16 or more, you write the remainder and carry the number of sixteens to the next column.
- Write both numbers one below the other, with the last digits aligned.
- Change each digit to its decimal value if you need to.
- Add the digits in the rightmost column, plus any carry.
- If the total is below 16, write it as a hex digit. If it is 16 or more, subtract 16, write the remainder and carry 1.
- Repeat for each column until you reach the left end.
Worked Example 1: 2F plus 3C
Imagine a Class 11 student in Pune is told to add the hex numbers 2F and 3C. Start at the right. F is 15 and C is 12, so the column total is 27. Since 27 is more than 16, take away 16 to get 11, which is B. Write B and carry 1.
Now the left column. Add 2, 3 and the carry 1 to get 6. Nothing overflows, so you write 6. The answer is 6B in hex.
Check it in decimal. 2F is 47 and 3C is 60, and 47 plus 60 is 107. The hex number 6B is 6 times 16, which is 96, plus 11, which is 107. The answer matches.
Key takeaway: A hex carry is worth 16, not 10. If a column total is 16 or more, write total minus 16 and carry 1.
Step-by-Step: How to Subtract Hexadecimal Numbers
Subtraction follows the same column method. The difference is the borrow. When the top digit is smaller than the bottom digit, you borrow 1 from the next column on the left, and that borrow is worth 16 in the current column.
Many students prefer a safer path for long subtractions. They convert both numbers to decimal, subtract, and convert the result back. Use whichever method you trust, but always keep one method as your check.
Worked Example 2: 1A3 minus 0BE
Suppose a programmer in Bengaluru wants the gap between two memory offsets, 1A3 and 0BE. Write 1A3 on top and 0BE below it. The rightmost column is 3 minus E. Since 3 is smaller than 14, borrow 1 from the middle column. That adds 16 to the 3, making 19. Now 19 minus 14 is 5, so the last digit is 5.
The middle column had A, which is 10. After lending 1 it becomes 9. Now 9 minus B, which is 11, is not possible, so borrow again from the left column. The 1 on the left becomes 0, and the 9 becomes 25. Then 25 minus 11 is 14, which is E.
The left column is now 0 minus 0, which is 0. The answer is E5. Check it: 1A3 is 419 in decimal, 0BE is 190, and 419 minus 190 is 229. The hex number E5 is 14 times 16, which is 224, plus 5, giving 229. Correct again.
Step-by-Step: How to Multiply Hexadecimal Numbers
Multiplication is slower by hand, but the idea is simple. You multiply digit by digit, convert each product into a hex digit with a carry, and add the partial rows. Most people first convert the small digits to decimal, multiply, and then write the result in base 16.
Worked Example 3: 1F times 0A
A student preparing for the CCC exam in Jaipur is asked to multiply 1F by A. Here A is 10 and 1F is 31. Take the right digit first: F times A is 15 times 10, which is 150. Divide 150 by 16 to get 9 with remainder 6, so write 6 and carry 9.
Next, the left digit: 1 times A is 10. Add the carry 9 to get 19. Since 19 is above 16, that is 1 with remainder 3. Write 3 and then write the final carry 1 in front. The answer is 136.
Verify it: 31 times 10 is 310. The hex number 136 is 1 times 256, plus 3 times 16 which is 48, plus 6. That is 256 plus 48 plus 6, which equals 310. The result is right.
Using a Calculator to Check Your Work
Hand calculation builds understanding, but a checking tool saves time and marks. A free hexadecimal calculator lets you type two hex values, choose add, subtract, multiply or divide, and see the answer at once. Use it after you finish your own working, not before.
If you only want to see what a hex value means in everyday numbers, a hex to decimal calculator is enough. When your question moves into bit-level work, practise the same carry idea with a binary addition calculator, because every hex digit is just four bits.
Benefits of Learning Hex Calculation
- It makes binary shorter. One hex digit replaces four bits, so long bit strings become easy to read.
- It helps in exams. Questions in school papers, CCC, O Level and GATE CS often use hex values.
- It supports real work such as reading memory dumps, colour codes and MAC addresses.
- It trains careful, step-by-step thinking that helps in programming.
- It gives you a built-in way to check answers by converting to decimal.
Challenges and Limitations
Hex arithmetic by hand is slower than decimal because we use base 10 every day. The letters A to F feel odd at first, and a single slip in a carry can ruin a long answer. Division is the hardest operation and is rarely done manually beyond simple cases.
There is also a limit in computers. Fixed-size registers, such as 8-bit or 16-bit ones, wrap around when a result is too big. So FF plus 1 gives 100 on paper, but an 8-bit register keeps only 00. Negative values need two’s complement, which a plain column method does not show.
Common Mistakes to Avoid
- Carrying 10 instead of 16. A column overflows at 16, so always subtract 16 from the total before you carry.
- Mixing up letter values. Writing D as 12 or E as 15 is common, so keep the digit table next to you.
- Forgetting the borrow value. A borrow adds 16 to the current column, not 10.
- Misaligning columns. Always line up the last digits, and pad shorter numbers with leading zeros.
- Skipping the check. A quick decimal conversion catches most errors in under a minute.
- Treating a number like 10 as ten. In hex, 10 means sixteen, so read it as one-zero.
Best Practices for Hex Calculation
- Write out the digit table once at the top of your rough work, so you never guess a letter value.
- Pad both numbers with leading zeros so the columns line up cleanly.
- Do each column in decimal first, then convert the column result to a hex digit.
- Group binary in fours from the right when you move between binary and hex.
- Verify every answer by converting to decimal, or confirm it with an online calculator.
- Practise ten short sums every day for a week before an exam, and your speed will improve a lot.
Conclusion
Hexadecimal calculation is not a new kind of maths. It is the same column method you already know, with a carry and borrow of 16. If you remember the digit table and double-check with decimal, you can handle almost any school or entrance-exam question.
Start with the three worked examples above, then make up your own pairs and test them. Over time the letters A to F will feel as normal as 7 or 8, and tools like a hex calculator will simply become your safety net.
- Try the free Hexadecimal Calculator →
- Hexadecimal Formula Explained With Examples
- What Is Hexadecimal? A Simple Guide for Students
- Hexadecimal Calculator: Free Online Tool and Guide
- Hexadecimal Examples for Beginners With Answers
- Fibonacci Formula Explained With Examples
- Algebra Formulas Explained with Examples for Class 8 to 12
- More Mathematics guides
FAQs
How do you add two hexadecimal numbers?
Add column by column from the right, using decimal values for A to F. If a column total is 16 or more, subtract 16, write the remainder and carry 1. For example, 2F plus 3C gives 6B.
What is 15 plus 1 in hexadecimal?
Fifteen is F, and F plus 1 equals sixteen. Since a column overflows at sixteen, you write 0 and carry 1, so the answer is 10 in hex.
Why do we carry 16 in hex and not 10?
The base of hexadecimal is 16, so each column holds sixteen values from 0 to F. Once a column reaches sixteen, one unit moves to the next column on the left.
Is hexadecimal in the CBSE Class 11 syllabus?
Yes, number systems including binary, octal and hexadecimal are part of the Class 11 Computer Science syllabus. Students are expected to convert between systems and understand why hex is used in computing.
Can I multiply hex numbers without converting to decimal?
Yes, you can multiply digit by digit and carry in base 16. Most people find it easier to convert digit products to decimal first and then write them back as hex digits.