Binary Calculator

Add, subtract, multiply or divide binary integers and convert between binary, decimal and hexadecimal.

Your numbers

Live

Instant result. Updates while you type.

Your result

Updated now
—

Enter your numbers.

Binary calculator with exact integer arithmetic and conversion

Calculate two binary integers or convert in either direction. HitEquals returns binary, decimal and hexadecimal forms together so every answer can be cross-checked.

Editorial checkSigned parsing, four operations, quotient/remainder and base conversions tested with exact BigInt arithmetic. Flagship guide, worked checks and page-specific explanatory diagram reviewed September 13, 2026.Updated September 13, 2026Read the publication standard

Inputs used by this calculator

Binary Calculator uses the fields below. The starting values reproduce the page example; replace them with values from the same units and time period before using the result.

Field-by-field reference for Binary Calculator.
InputStarting exampleAccepted valueHow it is used
Operation modeBinary arithmeticBinary arithmetic · Binary to decimal · Decimal to binaryChooses which Binary Calculator method or unknown the engine evaluates.
First binary integer10101Text in the format shownSupplies the first binary integer quantity used by the published equation or result breakdown.
OperatorAddAdd · Subtract · Multiply · DivideSelects the unit or conversion path used by Binary Calculator.
Second binary integer111Text in the format shownSupplies the second binary integer quantity used by the published equation or result breakdown.
Decimal integer42Text in the format shownSupplies the decimal integer quantity used by the published equation or result breakdown.
Binary digits carry powers of twoA 1 includes its place value and a 0 excludes it; adding included powers gives the decimal integer.12^402^312^202^112^016 + 4 + 1 = 21₁₀
Binary digits carry powers of twoA 1 includes its place value and a 0 excludes it; adding included powers gives the decimal integer.

How binary place value works

Binary uses only digits 0 and 1. Reading right to left, positions represent 2⁰, 2¹, 2² and so on.

Exact arithmetic modes

Addition, subtraction and multiplication return signed whole integers. Division reports quotient and remainder rather than silently discarding the leftover.

Binary to decimal

Multiply each 1 bit by its power of two and add those place values.

10111₂=1×2⁴+0×2³+1×2²+1×2¹+1×2⁰=23

Decimal to binary

Repeated division by two produces remainder bits. Reading remainders from last to first gives the binary representation.

Worked addition example

10101₂ is 21 and 111₂ is 7. Their sum 28 is 11100₂.

Signed and fixed-width limits

A leading minus sign represents a mathematical negative integer, not a fixed-width two's-complement bit pattern. Hardware overflow and word size require an explicit separate model.

Reading binary without a converter

Write powers of two from right to left beginning with 1. Add only positions containing a 1. For 10101₂, the included places are 16, 4 and 1, which sum to 21.

Binary arithmetic versus computer storage

This page performs exact mathematical integer arithmetic. Computer systems also choose a fixed bit width, signed representation and overflow behavior. Those implementation choices can change how a negative bit pattern is interpreted even when the underlying integer operation is familiar.

Binary place values

The rightmost bit is position zero.
PowerBinary placeDecimal value
2⁰11
2¹102
2²1004
2³10008
2⁴1000016

Four-bit binary reference

Leading zeros preserve width but do not change the unsigned value.
BinaryDecimalHex
000000
000111
001022
010044
100088
111115F

Frequently asked questions

Can I enter negative binary integers?

Yes, with one leading minus sign.

Does division show a remainder?

Yes. It reports exact integer quotient and remainder.

Are results limited to 32 bits?

No. BigInt keeps exact integers up to the page's 256-digit input limit.

Does this support binary fractions?

No. Inputs are whole integers.

What is 1010 in decimal?

It is 10.

Is a negative result two's complement?

No. It is displayed with a minus sign.

Do leading zeros change a binary integer?

No for mathematical value, although they can indicate a chosen storage width.

Why does one hexadecimal digit equal four bits?

Four binary positions represent 16 combinations, matching one base-16 digit.

What to keep in mind

Whole signed integers only, up to 256 binary digits. Division returns integer quotient and remainder; fractional binary values and fixed-width overflow are outside scope.

Results are rounded for display in US format, with money in dollars and cents; CSV exports keep full calculation precision. This is a calculation summary, not an official certificate.

Sources and references

Manage privacy choices