Web4College

Loading visualization…

Add Two Hexadecimal Numbers

Enter two hexadecimal whole numbers and watch how the Viz adds matching columns and carries to the next place.

How to add hexadecimal numbers by hand

  1. Line up the digitsRight-align the numbers so matching places line up. Each place to the left is worth 16 times the previous one; fill missing places with 0 and start at the right with carry 0.

  2. Add the columnAdd both digits and the incoming carry in decimal. The letters A–F stand for 10–15, respectively.

  3. Write one digitBelow 16, write the total and pass 0 left; otherwise subtract 16, write the remainder, and pass 1 left. Use A–F for 10–15.

  4. Finish the sumRepeat leftward, writing any final carry as a new digit. Drop leading zeros, but keep one 0 to show a zero sum.

Worked example

Add 2F and 17 in base 16, using decimal column totals.

  1. 1. Add the right column

    15 (F) + 7 + 0 (starting carry) = 22; 22 − 16 = 6

    The total reaches 16, leaving 6 after subtraction.

    Write 6 and carry 1 left.

  2. 2. Add the left column

    2 + 1 + 1 (carried) = 4

    The total is below 16, so there’s no final carry.

    Write 4 to the left of 6.

Hexadecimal sum46