Hexadecimal to Decimal
Hexadecimal to decimal is the process of converting one number from hexadecimal system to decimal system. Hexadecimal has a base number of 16 whereas the decimal number system has a base number of 10.
A number system is a representation of numbers by using digits or other symbols in a consistent manner. There are four types of number systems namely, binary, octal, decimal, and hexadecimal. Each of these has its own unique base number that distinguishes between the systems. Let us learn how to convert hex to decimal, the conversion table, and solve a few examples to understand the concept better.
1. | What is Hexadecimal to Decimal Conversion? |
2. | How to Convert Hexadecimal to Decimal? |
3. | Hexadecimal to Decimal Formula |
4. | FAQs on Hexadecimal to Decimal |
What is Hexadecimal to Decimal Conversion?
Hexadecimal to decimal conversion is done by keeping the base numbers of each of the number systems in mind. The hexadecimal number system operates with both digits and characters, especially characters are used to represent double-digit numbers. There are a total of 16 notations in hexadecimal system: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 and 10-15 is represented by the letters A-F respectively. Whereas in the decimal number system, 10 notations are represented as 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. To convert hexadecimal to decimal, we first obtain the digit equivalent of hexadecimal from the conversion table, multiply the digits with 16 to the power of digit location (we start from right most digit and move to the left by multiplying the digits by 160, 161, 162, ...) and add them all together. The conversion table is mentioned below:
Hexadecimal Number System Definition
A hexadecimal number system is also known as a positional number system as each digit has a weight of power 16. Each digit is 16 times more significant than the next digit. Hence, when we convert any hexadecimal number to decimal number system, we multiply the digits individually keeping the power of 16 in mind according to the placement of their position. This number system uses sixteen digits/alphabets: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F with the base number as 16. For example, 7DE16, E5F16, 9B4A16.
Decimal Number System Definition
Decimal number system has a base of 10 with digits from 0-9. Numbers in daily life are generally represented in this form. For example, 2410, 65410, 201210.
How to Convert Hexadecimal to Decimal?
The conversion of hexadecimal to decimal is done by using the base number 16. To convert a number from hexadecimal to decimal form:
- Step 1: Write the decimal equivalent of each digit of the number in hexadecimal form (from the above table)
- Step 2: Multiply the digits from right to left with exponents of 160, 161, 162, ... in order starting from the right most digit.
- Step 3: Then add all the products. The resultant sum is the number in the decimal system.
The hexadecimal digit is expanded to multiply each digit with the power of 16. The power starts at 0 from the right moving forward towards the right with the increase in power. For the conversion to complete, the multiplied numbers are added.
Decimal Number = dn-1 × 16r-1+....+ d2 × 162 + d1 × 161 + d0 × 160.
Where,
- n = the number of digits.
- r = placement of the digit (from the right side starting from r = 0)
Let us look at an example to understand this better.
For example: Convert hexadecimal number (25)16 to its decimal form.
(25)16 = 2 × 161 + 5 × 160
= 2 × 16 + 5 × 1
= 32 + 5
= 37
Therefore, (25)16 = (37)10.
☛Also Check: Hexadecimal to Decimal Converter
Hexadecimal to Decimal Formula
Hexadecimal to decimal formula conversion uses the following method:
- The base of the number to be converted here is 16.
- Multiply each digit of the given number, starting from the rightmost digit, with the exponents of the base 16.
- The exponents should start with 0 and increase by 1 every time as we move from right to left.
- We just simplify each of the products and add them.
The hex to decimal conversion formula is given as:
d
☛Related Topics:
Hexadecimal to Decimal Examples
-
Example 1: Convert (5BC)16 into the decimal system.
Solution:
To find: (5BC)16 in the decimal system
In Hexadecimal system,
5 = 5
B = 11
C = 12
Using hexadecimal to decimal formula,
(5BC)16 = ( 5 × 162 + 11 × 161 + 12 × 160 )
= 5 × 256 + 11 × 16 + 12× 1
= (1468)10
Answer: Therefore, (5BC)16 =(1468)10
-
Example 2: Convert the following number from hex to decimal: 8CF.
Solution:
To find: 8CF (hex) in Decimal
In the Hexadecimal system,
8 = 8
C = 12
F = 14
Using hex to decimal formula,
(8CF)16= ( 8 × 162 + 12 × 161 + 15 × 160 )
= 8 × 256 + 12 × 16 + 15 × 1
= (2255)10
Answer: Therefore, (8CF)16 = (2255)10.
-
Example 3: Convert 1D9 (hexadecimal) to decimal.
Solution:
To find: 1D9 (hexadecimal) in Decimal
In the Hexadecimal system,
1 = 1
D = 13
9 = 9
(1D9)16= ( 1 × 162 + 13 × 161 + 9 × 160 )
= 1 × 256 + 13 × 16 + 9 × 1
= (473)10
Answer: Therefore, (1D9)16 = (473)10.
FAQs on Hexadecimal to Decimal
What is Meant by Hexadecimal to Decimal?
Hexadecimal to decimal conversion is done by keeping the base numbers of both number systems in mind. While converting hexadecimal to decimal, the base number 16 is used. The hexadecimal number system uses 16 digits/alphabets: The digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and the characters A, B, C, D, E, F (which represent the decimal numbers from 10-15) thus having base 16. The decimal number system uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, and thus has base 10.
Where to Find Hex to Decimal Converter?
Cuemath's hex to decimal converter converts any number given in the hexadecimal system into decimal system just with one click. Give it a try by clicking here.
How to Convert Hex to Decimal?
Converting hexadecimal to decimal is done by using the base number 16. The steps are as follows:
- Obtain the decimal equivalent of the hexadecimal characters by referring to the conversion table.
- Expand the digits to multiply each digit with the power of 16 that starts 0 from the right to left and increase the power by 1 each time as you move on to the left.
- After the process of multiplication is completed, find the sum.
- The final answer is the decimal number.
What is the Hexadecimal to Decimal Formula?
The conversion formula for hexadecimal to decimal is:
d
How to Use the Hexadecimal to Decimal Formula?
The hexadecimal to decimal formula helps in converting a number given in base 16 to base 10. To use this formula:
- Change the characters to digits by using the conversion table if necessary.
- Then multiply the digits by the exponents of 16, i.e., 160, 161, 162, 163, ... by starting with the rightmost digit in order.
- Add all the products and sum gives the decimal equivalent of the given hexadecimal number.
What are the Four Types of Number Systems?
In mathematics, there are four types of number systems, they are:
- Binary number system - The base number is 2
- Octal number system - The base number is 8
- Decimal number system - The base number is 10
- Hexadecimal number system - The base number is 16
visual curriculum