Calculators & Converters

    Convert Decimal 40 to Binary

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

    (40)10 in binary is equal to:
    4010 = 1010002

    Hence,
    (40)10 is equivalent to (101000)2

    where,
    4010 is the given decimal number,
    10 in 4010 represents the base-10 or decimal number system,
    1010002 is the binary equivalent of the decimal 41,
    2 in 1010002 represents the base-2 or binary number system.

    Important Notes: (40)10 in Binary
    The below are some of the important notes to be remembered while converting the base-10 number 40 into a binary number.

    1. The initial or first remainder while performing MOD-2 operation for 40 is a Least Significant Bit (LSB).
    2. The last remainder while performing MOD-2 operation for 40 is a Most Significant Bit (MSB).
    3. The remainders of MOD-2 operation for 40 should be written from MSB to LSB to form the binary 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 binary?

    The below step-by-step solution shows how to convert (40)10 to its equivalent binary code or number. Arranging or writing the remainders from MSB to LSB of successive MOD-2 operation for decimal 40 forms the binary equivalent of 40.

    Solved Example:
    What is the binary equivalent of 40?

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

    Input values:
    Decimal Number = (41)10

    what to be found:
    Which binary value is equal to the decimal number 40?
    (40)10 = (?)2

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

    Successive MOD-2 Operation for 40:
    40 MOD-2     40 / 2 = 20  Remainder is 0 → LSB
    20 MOD-2     20 / 2 = 10  Remainder is 0
    10 MOD-2     10 / 2 = 5  Remainder is 0
    5 MOD-2     5 / 2 = 2  Remainder is 1
    2 MOD-2     2 / 2 = 1  Remainder is 0
    1 MOD-2     1 / 2 = 0  Remainder is 1 → MSB

    step 3 Write the remainders of MOD-2 operation for 40 from MSB to LSB forms the binary equivalent for 40:
    101000
    4010 = 1010002

    Therefore,
    the binary equivalent of 40 is (101000)2
    getcalc.com Calculators