Decimal to Binary Calculator
Convert decimal numbers to binary.
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
- Enter a decimal number such as 13 or 42 into the input box.
- Click the convert or calculate button.
- Read the binary result shown by the calculator.
- 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
- Find the largest power of 2 that is less than or equal to the decimal number.
- Subtract that power of 2, then repeat with the remaining amount.
- 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.
- The largest power of 2 less than or equal to 13 is 8, so write 1 in the 8s place. Remainder: 13 - 8 = 5.
- The next power is 4, and 5 includes 4, so write 1 in the 4s place. Remainder: 5 - 4 = 1.
- 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
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.