Binary Calculator

MATH · NUMBER SYSTEMS

Binary arithmetic & base converter

Calculated on this device
Enter a binary integer using digits 0 and 1.
Choose addition, subtraction, multiplication, or integer division.
Enter the second binary integer using digits 0 and 1.

BINARY RESULT (BASE 2)

101110110

170 + 204 = 374 (decimal)

Precision: Exact arbitrary-precision integer arithmetic (BigInt)

Decimal (Base 10)374Signed base-10 integer
Hexadecimal (Base 16)0x176Octal: 566

HOW IT WORKS

Base-2 arithmetic and positional place values

Binary (base 2) represents numbers using only two digits: 0 and 1. Each bit position corresponds to a power of 2, starting from 2⁰ on the right.

01

Binary Addition & Subtraction

Addition follows four rules: 0+0=0, 0+1=1, 1+0=1, and 1+1=10 (0 with a carry of 1).

02

Exact BigInt Arithmetic & Conversion

All operations use arbitrary-precision integer arithmetic (BigInt) so 32-bit or 64-bit values never suffer from floating-point rounding.

NUMBER SYSTEMS GUIDE

Converting between binary, decimal, octal, and hexadecimal

Grouping bits for fast hex and octal conversion

Because 16 = 2⁴ and 8 = 2³, converting binary to hexadecimal or octal is a direct grouping operation: group binary digits in fours from the right for hex (for example, 1010 1010 = AA), or in threes for octal. For hexadecimal arithmetic, switch to our Hex Calculator.

Frequently asked questions

How do I convert binary to decimal by hand?

Multiply each bit by 2ⁿ where n is its 0-based position from the right, then sum the products. For example, 1011₂ = 8 + 0 + 2 + 1 = 11₁₀.

Does this calculator support negative binary numbers?

Yes. Prefix a binary value with - (sign-magnitude) to perform signed integer arithmetic and conversions.

What happens when I divide two binary numbers?

Integer division computes the binary quotient and also shows the exact remainder in both binary and decimal.

Why use BigInt instead of standard JavaScript numbers?

Standard floating-point numbers lose integer precision above 2⁵³ − 1, whereas BigInt keeps every bit exact.

All binary operations and conversions run locally in your browser.