ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Decimal to Hexadecimal, Hexadecimal to Decimal: Adding

Updated on September 7, 2009

Many textbooks are written to explain the hexadecimal but few show how to convert a hexadecimal number into decimal and the other way around. If you are studying a foundation degree in IT or Information Systems and Management and you are hopeless don't worry, here you will get it right. I promise to use plain words to brake this down.

First thing, the hexadecimal goes like this 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. If we count in decimal we will arrive to number 15. That means that A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15.
And that is clear! Even so, what happens after F? I think that is what you need to know in order to calculate it easy, and what no textbook has appeared to mention.

After F: F+1=10(16 in decimal)

F+2=11(17 decimal), F+3=12(18 decimal)

F+4= 13(19 decimal), F+5=14(20 decimal)

F+6=15(21 decimal), F+7=16(22 decimal)

F+8= 17(23 decimal), F+9=18(24 decimal)

F+A= 19(25 decimal),

F+B=1A(26 decimal), F+C=1B(27 decimal)

F+F=1C(28 decimal).

If you need to i.e. F+B=1A you write down A and carry the 1 to the next column

Adding hexadecimal numbers

+ FB

Here you have F+B=1A, you write down A and you carry 1 to the next column, there you have 4+F=13+1(that we carried)=14. so the result is 14A, but this result is in hexadecimal. If your question requires now to convert this to decimal this is the easiest way to do it.

14A =hexadecimal is a base of 16. This means that if you need to convert this to decimal you need to multiply by 16, starting from the right with 160. Hence, 160 then 161, then 162 and so on.

In our case we have three hex numbers 14A and we do simply this:

1x162+ 4x161+ Ax160 (A is 10 and you can find this from the hex table)
1x162+ 4x161+ 10x160 =256+ 64+10(because 160 =1)= 330

Hence, 14A= 330 in decimal

The best way is first to add or subtract in hexadecimal and when you have the result to simply do this operation with the base of 16. On your exam you are not allowed to use your calculator, so use it only to check your results, when you practice, again not on your exam.

Lets do now a more advanced adding in hexadecimal

E30F9 (final result explained below)

Here is the result already, and if you can manage to understand this than you will be able to add any number in hexadecimal.

1. ADDING C+D=19, write down 9 and carry 1

C+D=19 (in hexadecimal) Why?

Because after the hexadecimal C from the table we have D,E,F,10,11,12,13,14,15,16,17,18,19
From D to 9, we have 13 numbers, which equals D.
Therefore, C+D=19(remember, 19 is a hex number, not decimal)

I will remind you again that before the hexadecimal F, we never carry 1, after the F we do carry 1.

So that means that if you add two hex numbers and the sum is less than F than you don't need to carry 1 to the next column, just write the sum down. If you add two numbers which sum is more than F than you must carry 1 to the next column.

2. ADDING F+F=1E Why?

Because F has 15 numbers, and if we start counting from F up to 15 to get to 1E. Starting from the first one after F: 10,11,12,13,14,15,16,17,18,19, 1A, 1B, 1C, 1D,1E
(if you count all these numbers they add up to 15 which equals F on the hex table). So we have E and we carry 1 from the ->1E to the next column.
Remember that we had the carry from the first column so E+1=F, now that added up, we right down F, and we carry one to the third column.

3 ADDING 3+C=F, plus we need to add the one that we carry from the second column and that means we get 10(again, because after F comes 10), so we write down 0 and again we carry 1.

4. ADDING B+7=12 Plus the one that we carry from the last(third) column, we get 13, right down 3 and carry 1, again, to the next column.

5. ADDING A+3=D and we add from the last(forth) column that carries one. We get E.

Because E is less than F it doesn't carry one to the next column and therefore, E is the last number. If instead we had 10 we were writing down 0 and adding 1 after the number E.
(i.e. if we have E, we get this E30F9. If we have 10, we get this 1E30F9). Got it?

Congratulations, now you know how to add in hexadecimal!

The last thing that I can do is to convert the hexadecimal into decimal and from decimal to hexadecimal:

The result is E30F9: now to convert this to decimal we need to use base 16 as you can see below:

Ex164+ 3x163+ 0x162+ Fx161 + 9x160

Now you can see at the table and exchange the letters with numbers, what is needed for E, that is 14 and F that is 15, hence:

14x164+ 3x163+ 0x162+ 15x161 + 9x160 (remember 160=1)=

917504 + 12288 + 0 + 240 + 9 = 930041

Now we need to convert 930041 into hexadecimal and this is one possible way

930041:16 = 58127.563

We split the first result 58127 from 0.563, and we divide again 58127 by 16.
The remainder is multiplied 0.563 by 16

0.563x16=9 (forget the reminder here)
and this number is the first hexadecimal starting from the right _ _ _ _ 9

We need to repeat this process dividing by 16 until we find all the numbers that will line up from right to left.

58127:16= 3632.94

We split again and we get 3632 and 0.94

0.94x16=15 (which in hex is F, you need to remember to convert this!)

Now we have the second hex number starting from the right and that is

_ _ _ F 9

Now it's simple, you can simply carry on

(remainder is 0, so the third number, indeed, is 0. If you don't see a comma you don't need to calculate the remainder, is always zero)

_ _ 0 F 9

227:16 = 14.186

We split 14 from 0.186

0.186x16=2.98 (which is 3, every decimal equal or over 2.5 can be rounded 3)

_ 3 0 F 9

We are now calculating the last number

14:16 = 0.875

If we are below 1(alike 0.875) that means that you are calculating your last number! Yup!

0.875x16=14 (which in hexadecimal is E)


E 3 0 F 9, is your final result. And the one that we've got when we added 2 hex numbers.

Hope you found this useful,and if you have any problems just leave a comment and I can help you out.


    0 of 8192 characters used
    Post Comment

    • profile image

      wajid ali 

      4 years ago

      add (579)10


    • asalvani profile imageAUTHOR


      7 years ago from London, UK

      musta'in this is the best way you can get by in the exam.

      Best. Anto

    • profile image


      8 years ago

      Thanks a lot. it's useful for me. do you have other way to convert. so i can finish question faster in examination?

    • asalvani profile imageAUTHOR


      8 years ago from London, UK

      Thanks Carol, I'm glad you enjoyed the Hub. A

    • Carol the Writer profile image

      Carolyn Blacknall 

      8 years ago from Houston, Texas

      Hexadecimal conversion starts to make sense after a while. Good hub!

    • asalvani profile imageAUTHOR


      9 years ago from London, UK

      Thanks Waren E, I'm glad you find this Hub useful! And more will be coming soon related to hexadecimal conversion.

    • Waren E profile image

      Waren E 

      9 years ago from HAS LEFT THE BUILDING............

      You've really put this topic on the level,I do a little program debugging and game tweaking as a hobby on my own,this kind of math comes in handy when not using a calculator!

    • asalvani profile imageAUTHOR


      9 years ago from London, UK

      Wow, that is something to do addition or subtraction in various bases. I never tried that before, must be quite involved, but very interesting.

      Thanks for your comment, this hub should be helping the students from October:).

    • GreenMathDr profile image


      9 years ago

      Yes doing this makes it seem easy to think in the bases less than 10. When I was in about the 3rd grade we had to do addition and subtraction in the various bases in order to prepare us for bases above 10. It was a short lived idea in the "American" "New Math" but it is the type of thing that enhances one's concept of bases.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)