Binary Fraction Converter

This converter works both ways between decimal fractions and binary fractions, handling mixed numbers with both a whole-number part and digits after the point. Enter a decimal number such as 6.625 into the Decimal to Binary field and choose a fractional precision of 8, 16 or 32 bits, and the tool splits it into integer and fractional parts, converts the integer using repeated division by 2 and the fraction using repeated multiplication by 2, then returns the combined binary result with a full step-by-step breakdown of each multiplication and the bit it produces. Enter a binary number such as 110.101 into the Binary to Decimal field and it separates the integer and fractional bits, applies the correct power-of-2 weight to each fractional digit (0.5, 0.25, 0.125 and so on), and totals them to give you the decimal equivalent, again with every step shown. Both results tell you whether the conversion is exact or truncated, because only decimal fractions whose denominator is a power of 2 (like 0.5, 0.25 or 0.625) convert exactly to binary; others, such as 0.1 or 0.3, repeat forever and are cut off at your chosen precision, which is why computers can produce small rounding errors with everyday decimals. Use this tool to check homework, understand floating-point behaviour, or learn how binary fractions are built bit by bit.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Standard conversion method  Repeated multiplication (decimal to binary) and positional weights (binary to decimal). Max 32 fractional bits.

1. Decimal to Binary

2. Binary to Decimal

Conversion Results

Decimal to Binary Result
-
Enter a decimal number above
Binary to Decimal Result
-
Enter a binary number above

Decimal to Binary Breakdown

Input (decimal)-
Integer part-
Fractional part-
Integer in binary-
Fraction in binary-
Exact?-
Combined binary-

Binary to Decimal Breakdown

Input (binary)-
Integer part-
Fractional part-
Integer value-
Fractional value-
Total decimal value-

Step-by-Step: Decimal Fraction to Binary (Repeated Multiplication by 2)

Steps will appear here after you enter a decimal number with a fractional part.

Step-by-Step: Binary Fraction to Decimal (Positional Weights)

Steps will appear here after you enter a binary number with a fractional part.

How Binary Fractions Work

In binary (base 2), the digit positions to the left of the binary point represent positive powers of 2 (1, 2, 4, 8, ...) and positions to the right represent negative powers of 2 (1/2, 1/4, 1/8, 1/16, ...). This is directly analogous to how decimal fractions work, except the base is 2 instead of 10.

For example, the binary number 110.101 means:

Total: 4 + 2 + 0 + 0.5 + 0 + 0.125 = 6.625

Converting Decimal Fractions to Binary

The integer part of a decimal number is converted to binary using the standard repeated division by 2 method. The fractional part is converted separately using repeated multiplication by 2:

  1. Multiply the fractional part by 2.
  2. The integer part of the result (0 or 1) becomes the next binary digit after the point.
  3. Keep only the new fractional part and repeat.
  4. Stop when the fractional part reaches 0 (exact result) or you have reached your required precision.

Worked Example: 6.625 to Binary

Integer part 6: 6 / 2 = 3 remainder 0, 3 / 2 = 1 remainder 1, 1 / 2 = 0 remainder 1. Reading remainders upward: 110.

Fractional part 0.625:

StepCalculationInteger (bit)Remaining fraction
10.625 x 2 = 1.2510.25
20.25 x 2 = 0.500.5
30.5 x 2 = 1.010 (exact)

Binary fraction: .101. Combined result: 110.101

When Exact Conversion is Not Possible

Only decimal fractions whose denominator is a power of 2 convert exactly to binary. Common exact examples include 0.5 (= 1/2 = 0.1 in binary), 0.25 (= 1/4 = 0.01), 0.125 (= 1/8 = 0.001), and 0.75 (= 3/4 = 0.11). Fractions such as 0.1, 0.2, and 0.3 produce infinitely repeating binary sequences. This converter caps output at 32 fractional bits and notes when the result is approximate.

Common Reference Values

DecimalBinaryExact?
0.50.1Yes
0.250.01Yes
0.1250.001Yes
0.750.11Yes
0.6250.101Yes
0.10.0001100110011... (repeating)No
0.30.0100110011... (repeating)No
6.625110.101Yes

Related Calculators

Method: Decimal integer parts are converted to binary by repeated division by 2 (collecting remainders). Decimal fractional parts are converted by repeated multiplication by 2 (collecting integer parts). Binary numbers are converted to decimal using positional weights: each bit at position n after the binary point contributes bit x 2-n. The converter applies up to 32 fractional bits and flags results that are truncated rather than exact.

This converter is provided for educational and practical use. Repeating binary fractions are shown to the selected precision and flagged as approximate. For integer-only binary conversions, use the Binary Converter or Decimal to Binary Calculator.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.