Skip to main content

Decimal to Binary Calculator

Convert decimal numbers to binary.

Reviewed for accuracy by the Math Ora X team Last updated

Result

About Decimal to Binary Calculator

To convert decimal to binary, repeatedly divide by 2 and record the remainders.

$$n_{10} \rightarrow n_2$$

How to use this calculator

  1. Enter a decimal number such as 13 or 42 into the input box.
  2. Click the convert or calculate button.
  3. Read the binary result shown by the calculator.
  4. If needed, check the worked example to see how the conversion was built step by step.

The formula explained

This conversion changes a number written in base 10, written as \(n_{10}\), into the equivalent number in base 2, written as \(n_2\). In binary, each digit is either 0 or 1, and each position represents a power of 2.

  • \(n_{10}\) = the decimal number you start with
  • \(n_2\) = the same value written in binary
  • 2 = the base used in binary place value

Step by step method

  1. Find the largest power of 2 that is less than or equal to the decimal number.
  2. Subtract that power of 2, then repeat with the remaining amount.
  3. Write 1 for each power of 2 used and 0 for each power of 2 skipped, from largest power to smallest.

Worked example

Problem. Convert 13 from decimal to binary.

  1. The largest power of 2 less than or equal to 13 is 8, so write 1 in the 8s place. Remainder: 13 - 8 = 5.
  2. The next power is 4, and 5 includes 4, so write 1 in the 4s place. Remainder: 5 - 4 = 1.
  3. The next powers are 2 and 1. 1 does not include 2, so write 0 in the 2s place, then write 1 in the 1s place. This gives 1101.

Answer. 13 in decimal is 1101 in binary.

Tips and common mistakes

  • Binary digits can only be 0 or 1, so if you see a 2 or higher, the number is not written correctly in binary.
  • If the number is small, check your answer by adding the place values, for example \(1101_2 = 8 + 4 + 1 = 13\).

Frequently asked questions

How do I convert a decimal number to binary with this calculator?+

Enter the decimal number in the input box and the tool will return its binary form. For example, 13 in decimal becomes 1101 in binary.

What does the formula n10 to n2 mean?+

It means you are converting a number from base 10, which is decimal, into base 2, which is binary. In binary, each digit is either 0 or 1, and the place values are powers of 2.

How does the calculator handle whole numbers and remainders?+

It converts the number by repeatedly dividing by 2 and recording the remainders. Those remainders, read from bottom to top, form the binary answer.

Can I convert decimal numbers with fractions or negative values?+

Decimal fractions usually require a separate process because the binary representation can repeat, so check whether the tool supports fractional input. Negative numbers may also be handled differently depending on whether the calculator uses a sign or two's complement format.

What is the difference between decimal to binary and decimal to hexadecimal?+

Decimal to binary changes a number into base 2, while decimal to hexadecimal changes it into base 16. They use different place values, so the same decimal number will have a different representation in each system.

More Mathematics Tools

Explore related calculators in this category

You Might Also Like

Popular tools from other categories

Can't Find the Right Calculator?

Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.

Try AI Solver

Browse All Categories

Home Mathematics Current Tool
Facebook Twitter WhatsApp