# Convert Decimal 40 to Hex

(40)10 = (?)16. Decimal 40 in hex conversion provides the detailed information on what is the hexadecimal equivalent of (40)10 and the step-by-step work for how to convert the decimal 40 to its equivalent hex (base-16) number manually.

(40)10 in hex is equivalent to:
4010 = 2816

Hence,
(28)16 is the hex equivalent of (40)10

where,
4010 is the given decimal number,
10 in 4010 represents the base-10 or decimal number system,
2816 is the hex equivalent of the decimal 40,
16 in 2816 represents the base-16 or hexadecimal number system.

Important Notes: (40)10 in Hex
The below are some of the important notes to be remembered while converting the (base-10) decimal number 40 into a (base-16) hexadecimal equivalent.

1. The initial or first remainder while performing 40 MOD-16 operation is a Least Significant Bit (LSB).
2. The last remainder while performing 40 MOD-16 operation is a Most Significant Bit (MSB).
3. Find the equivalent hex number for each remainders of 40 MOD-16 operation before arranging the numbers from MSB to LSB to find the hex equivalent.
4. The remainders of 40 MOD-16 operation in hex equivalents should be written from MSB to LSB to form the hex equivalent for the given decimal number (40)10.

For decimal values other than 40, use this below tool:

## How-to: What is (40)10 in hex?

The below step-by-step solution shows how to convert (40)10 to its equivalent hexadecimal number. Represent each remainders of 40 MOD-16 operation in hex equivalents and arranging them from MSB to LSB produces the hex equivalent of 40.

Solved Example:
What is the hex equivalent of 40?

step 1 Observe the input parameters, values and what to be found:

Input values:
Decimal Number = (40)10

What to be found:
What is the hexadecimal value of decimal number 40?
(40)10 = (?)16

step 2 Perform successive MOD-16 operation for decimal 40 until the quotient becomes 0, and mark the initial remainder as LSB and the final remainder as MSB as like the below:

Successive MOD-16 Operation for 40
 40 MOD-16 40 / 16 = 2 Remainder is 8 → LSB 2 MOD-16 2 / 16 = 0 Remainder is 2 → MSB

step 3 Use the below table to find the equivalent hex representation for each remainders of successive 40 MOD-16 operation:
 Decimal: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Hex: 1 2 3 4 5 6 7 8 9 A B C D E F

Decimal 8 in hex is 8 → LSB
Decimal 2 in hex is 2 → MSB

step 4 Write the remainders of 40 MOD-16 operation in hex equivalents from MSB to LSB produces the equivalent hex (base-16) number for decimal (base-10) 40:
= 28
(40)10 = (28)16

Therefore,
the hex equivalent of 40 is (28)16. 