The basic arithmetic operations such as Addition, Subtraction, Multiplication and Division for hexadecimal numbers are performed here. In hexadecimal number system there are 16 digits starting with 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. Here the addition of hexadecimal numbers is performed first.

Hexadecimal Addition

Hexadecimal Addition is achieved following by the given two steps given below.

  1. Add the right most digits of each hexadecimal numbers.
  2. Find the modulo of the sum of digits means divide the sum by 16 and the remainder so obtained is hexadecimal equivalent of the sum and the quotient is added to the next sum of digits from right side. Perform the second step until we add the last left most digits. Let us solve some examples to understand the processes.

Question 1: Find the sum of the hexadecimal numbers A2316 and 1B116?

Solution: The addition of A2316 and 1B116 is shown below.

Digit (Starting from Right)RemainderQuotient
3 + 1 = 44 % 16 = 44 / 16 = 0
(Quotient added) 2 + B + 0 = 1313 % 16 = 13 (D)13 / 16 = 0
(Quotient added) A + 1+ 0 = 1111 % 16 = 11(B)11 /1 6 = 0

Thus the addition of A2316 + 1B116 = BD416.

Question 2: Find the sum of the hexadecimal numbers 2AC16 and FAB16?

Solution: The solution of the above problem is shown below:

Digit (Starting from Right)RemainderQuotient
C + B = 2323 % 16 = 723 / 16 = 1
(Quotient added) A + A + 1= 2121 % 16 = 521 / 16 = 1
(Quotient added) 2 + F + 1= 1818 % 16 = 218 / 16 = 1
(Quotient added) 0 + 0 + 1 = 11 % 16 = 11 / 16 = 0

Thus the sum of the hexadecimal numbers 2AC16 and FAB16 is 125716.

Question 3: Find the addition of A2B.D416 and 247.6516?

Solution: The solution of the above problem is performed as:

Digit (Starting from Right)RemainderQuotient
4 + 5 = 99 % 16 = 99 / 16 = 0
(Quotient added) D + 6 + 0 = 1919 % 16 = 319 / 16 = 1
(Quotient added) B + 7 + 1 = 1919 % 16 = 319 / 16 = 1
(Quotient added) 2 + 4 + 1 = 77 % 16 = 77 / 16 = 0
(Quotient added) A + 2 + 0 = 1212 % 16 = 12(C)12 / 16 = 0

Thus the sum is C73.3916.

Hexadecimal Subtraction

Subtraction of hexadecimal numbers is obtained by following the given steps.

  1. First find 15’s complement or 16’s of the subtrahend.
  2. Add minuend and 15’s complement or 16’s of the subtrahend using the above addition steps of hexadecimal numbers.
  3. Discard the left most end carry and add 1 to the right most digit (only in case of 15’s complement) and that will be the final solution.

Question 4: Subtract the hexadecimal numbers ABC16 and A3B16?

Solution: here we will find the subtraction of the two given numbers using 15’s complement. So the solution for 15’s complement of A3B16 is as follows:

15 – A = 5

15 – 3 = C (in hexadecimal number system 12 = C)

15 – B = 4

So the 15’s complement of A3B16 is 5C416.

Now add ABC16 and 5C416.

Digit (Starting from Right)RemainderQuotient
C + 4 = 1616 % 16 = 016 / 16 = 1
(Quotient added) B + C + 1 = 2424 % 16 = 824 / 16 = 1
(Quotient added) A + 5 + 1 = 1616 % 16 = 016 / 16 = 1
(Quotient added) 0 + 0 + 1 = 11 % 16 = 11 / 16 = 0

The remainder is 108016. Now we have to discard the left most end carry 1 and then we have to add 1 to the right most digit.

Thus 108016 becomes 8016 + 1 = 8116

Hence, ABC16 – A3B16 = 8116.

We can solve the same problem taking 16’s complement of subtrahend. So let’s solve the problem by this method.

The 16’s complement of A3B16

= 15’s complement of A3B16 + 1

= 5C416 + 1

= 5C516

Now add ABC16 and 5C516.

Digit (Starting from Right)RemainderQuotient
C+5=1617%16=116/16=1
(Quotient added) B+C+1=2424%16=824/16=1
(Quotient added) A+5+1=1616%16=016/16=1
(Quotient added) 0+0+1=11%16=11/16=0

Thus the remainder is 108116. Now we have to discard the left most end carry 1 then number obtained is final value.

Hence, ABC16 – A3B16=8116.

Question 5: Subtract the hexadecimal numbers 67A16 and 54916?

Solution: The solution of this problem is as follows:

By using 15’s complement of subtrahend:

15’s complement of 54916 is found as:

15-5=10 (in hexadecimal number system 10=A)

15-4=11 (in hexadecimal number system 11=B)

15-9=6

So the 15’s complement is AB616.

Now add 67A16 and AB616.

Digit (Starting from Right)RemainderQuotient
A+6=1616%16=016/16=1
(Quotient added) 7+B+1=1919%16=319/16=1
(Quotient added) 6+A+1=1717%16=117/16=1
(Quotient added) 0+0+1=11%16=11/16=0

Thus the remainder is 113016. Now discard left most end carry 1 and add 1 to the right most digit.

Hence, 113016 become 13016 and after adding 1 we get 13116.

So 67A16 – 54916 = 13116.

By using 16’s complement of subtrahend:

16’s complement of 54916

= 15’s complement of 54916 + 1

= AB616+1

= AB716

Now add 67A16 and AB716.

Digit (Starting from Right)RemainderQuotient
A+7=1717%16=117/16=1
(Quotient added) 7+B+1=1919%16=319/16=1
(Quotient added) 6+A+1=1717%16=117/16=1
(Quotient added) 0+0+1=11%16=11/16=0

Thus when we arrange the remainder we get 113116. Now discard the left most end carry and we will get the final solution.

Hence after discarding end carry of 113116.

We get 13116.

Question 6: Solve ABC16+FAB16-2AC16?

Solution: first we add ABC16 and FAB16 then we subtract 2AC16 from the sum of ABC16 and FAB16.

Digit (Starting from Right)RemainderQuotient
C+B=2323%16=723/16=1
(Quotient added) B+A+1=2222%16=622/16=1
(Quotient added) A+F+1=2626%16=10(A)26/16=1
(Quotient added) 0+0+1=11%16=11/16=0

Thus sum of ABC16 and FAB16 is 1A6716.

Now subtract 1A6716 and 2AC16.

15’s complement of 2AC is obtained as:

15-2=13 (in hexadecimal number system 13=D)

15-A=5

15-C=3

Thus the 15’s complement of 2AC16 is D5316.

Now add 1A6716 and D5316.

Digit (Starting from Right)RemainderQuotient
7+3=1010%16=10(A)10/16=0
(Quotient added) 6+5+0=1111%16=11(B)11/16=0
(Quotient added) A+D+0=2323%16=723/16=1
(Quotient added) 1+0+1=22%16=22/16=0

Thus we get 27BA16. After discarding 1 from left most digit of 27BA16 and then we add 1.

Hence 27BA16 becomes 17BA16 and 17BA16+1=17BB16.

ABC16+FAB16-2AC16 = 17BB16.

Alternative Method of Addition and Subtraction of Hexadecimal Numbers

There is an alternative method also to find addition and subtraction of hexadecimal numbers. The steps are as follows:

  1. Convert each hexadecimal numbers into decimal numbers.
  2. Add or subtract the decimal numbers obtained from step one.
  3. Convert the decimal number obtained from step two into hexadecimal number.
  4. The hexadecimal number obtained from step three is the final answer.

Question 7: Add the hexadecimal numbers A2116 and 2B116?

Solution: To add the above two hexadecimal numbers we have to follow the above steps:

Convert A2116 and 2B116 into decimal numbers:

A2116

= Ax162+2×161+1×160

= 10×256+2×16+1×1

= 2560+32+1

= 259310

2B116

= 2×162+Bx161+1×160

= 2×256+11×16+1×1

= 512+176+1

= 68910

Add 259310 and 68910:

259310 + 68910 = 328210

Convert 328210 into hexadecimal number:

          16|3282     Remainder

          16|205             2

          16|12               13 (D)

          16|0                 12 (C)

So the sum is CD216.

Question 8: Subtract the hexadecimal numbers ABC16 and A8C16?

Solution: Convert the hexadecimal numbers ABC16 and A8C16 Into decimal numbers:

ABC16

= Ax162+Bx161+Cx160

= 10×256+11×16+13×1

= 2560+176+12

= 274810 

A8C16

=Ax162+8×161+Cx160

= 10×256+8×16+12×1

= 2560+128+12

= 270010

Subtract 274910 and 266810:

274810 – 270010 = 4810

Convert 4810 into hexadecimal number:

          16|81          Remainder

          16|3                 0

          16|0                 3

So the answer is 3016.

Multiplication and Division of Hexadecimal Numbers

The alternative method of finding multiplication or division of hexadecimal numbers is shown below:

  1. Change the hexadecimal numbers into decimal numbers.
  2. Multiply or divide the hexadecimal numbers.
  3. The decimal number obtained in the second step has to be changed into hexadecimal number and that is the final value.

Question 9: Find the multiplication of the hexadecimal numbers 11A16 and 5A316?

Solution: The solution is found by the above method as:

Change hexadecimal numbers into decimal numbers:

11A16

= 1×162+1×161+Ax160

= 1×256+1×16+10×1

= 256+16+10

= 28210

5A316

= 5×162+Ax161+3×160

= 5×256+10×16+3×1

= 1280+160+3

= 144310

Now multiply 28210 and 144310:

28210 x 144310 = 40692610

Change 40692610 into hexadecimal number:

          16|406926          Remainder

          16|25432                14(E)

          16|1589                   8

          16|99                       5

          16|6                         3

              |0                         6

So the multiplication of 11A16 and 5A316 is 6358E16­.

Question 10: Find division of ABC16 by A116?

Solution: The solution is as follows:

Change the hexadecimal numbers into decimal numbers:

ABC16

= Ax162+Bx161+Cx160

= 10×256+11×16+13×1

= 2560+176+12

= 274810 

A116

= Ax161+1×160

= 10×16+1×1

= 160+1

= 16110

Divide 274810 by 16110:

274810 / 16110 = 1710 (Around)

Now change 1710 into hexadecimal number:

          16|17         Remainder

          16|1                 1

              |0                 1

So the answer is 1116.

See Also:

  1. Primary Secondary and Catch Memory
  2. Addition, Subtraction, Multiplication and Division of Binary Numbers
  3. Addition, Subtraction, Multiplication and Division of Octal Numbers