🔍
Financial CalculatorsHealth & FitnessMath CalculatorsArithmeticAlgebraGeometryTrigonometryStatisticsTime & DateEducationEngineeringIT & UtilityConversionCreator Economy

Binary Calculator

Last updated: June 2026

Binary Calculation — Add, Subtract, Multiply, or Divide

= 170 (decimal)
= 204 (decimal)
Sum (Binary)
101110110
Sum (Decimal)
374
A (Decimal)
170
B (Decimal)
204

Convert Binary Value to Decimal Value

Decimal Value
170
Hexadecimal
0xAA
Octal
0o252
Bit Count
8 bits
Place Value Breakdown
2726252423222120
10101010
12803208020
128 + 32 + 8 + 2 = 170

Convert Decimal Value to Binary Value

Binary Value
10101010
Hexadecimal
0xAA
Octal
0o252
Bit Length
8 bits
Step-by-Step Conversion
1Largest 2n170: 27 = 128170128 = 42
2Largest 2n42: 25 = 324232 = 10
3Largest 2n10: 23 = 8108 = 2
4Largest 2n2: 21 = 222 = 0
Place 1 at bit positions: 2<sup>7</sup>, 2<sup>5</sup>, 2<sup>3</sup>, 2<sup>1</sup>, 0 elsewhere → 10101010

Binary / Decimal Conversion Table

DecimalBinaryHexadecimalOctal
0000
1111
21022
31133
410044
711177
81000810
101010A12
16100001020
20101001424

About the Binary System

The binary system uses base-2 with only digits 0 and 1 (called bits). Binary place values are powers of 2 (1, 2, 4, 8, 16…), just as decimal places are powers of 10. Nearly all modern computers use binary because digital circuits only need to detect two states — on or off.

EX: 18 in binary (10010)
18 = 16 + 2 = 2⁴ + 2¹
10010 = (1×2⁴) + (0×2³) + (0×2²) + (1×2¹) + (0×2⁰) = 18

Binary Arithmetic Rules

Addition
  • 0 + 0 = 0
  • 0 + 1 = 1
  • 1 + 0 = 1
  • 1 + 1 = 0 (carry 1)
Carry occurs at 2 (not 10). 1+1 = 10 in binary.
Subtraction
  • 0 − 0 = 0
  • 0 − 1 = 1 (borrow)
  • 1 − 0 = 1
  • 1 − 1 = 0
Borrow when subtracting 1 from 0; the 0 becomes 2.
Multiplication
  • 0 × 0 = 0
  • 0 × 1 = 0
  • 1 × 0 = 0
  • 1 × 1 = 1
Partial products are always 0 or the multiplicand.
Division
  • Uses long division
  • Quotient bits: 0 or 1
  • Binary subtraction each step
  • Remainder < divisor
Same as decimal long division using binary subtraction.

Perform addition, subtraction, multiplication, and division of binary values. Convert between binary and decimal with step-by-step explanations.

The Binary Calculator is a computing utility designed to perform mathematical and bitwise operations on binary numbers (Base-2 numeral system). The binary system is the native language of modern digital computers, where all data—including text, images, videos, and applications—is represented as sequences of 0s and 1s, corresponding to the off and on states of electronic transistors.

In addition to basic arithmetic operations like addition, subtraction, multiplication, and division in binary, a binary calculator supports bitwise logical operations. These operations include AND, OR, XOR, NOT, and bit shifts. A bitwise AND compares corresponding bits of two values, returning 1 only if both bits are 1. A bitwise OR returns 1 if at least one bit is 1. A bitwise XOR (exclusive OR) returns 1 only if the bits are different. These logical operations are fundamental to programming, networking subnet masks, and cryptography.

Converting between binary and other numeral systems is another core capability. The calculator converts binary inputs to decimal (Base-10), hexadecimal (Base-16), and octal (Base-8). Decimal conversion involves multiplying each binary digit by its corresponding power of 2 (e.g., 1011 in binary is 1*(2^3) + 0*(2^2) + 1*(2^1) + 1*(2^0) = 8 + 0 + 2 + 1 = 11 in decimal).

Binary numbers are structured in bytes, where 8 bits form 1 byte. Larger representations include 16-bit, 32-bit, and 64-bit integers. Computer programmers and network technicians use binary calculators to debug code, configure network routing tables, and analyze low-level memory allocations.

In system administration and cybersecurity, understanding binary operations is crucial for tasks like setting file permissions, decoding network packet headers, and writing low-level scripts. The binary calculator provides an efficient way to verify binary arithmetic and logical operations, eliminating the need for manual bit-by-bit conversions and ensuring error-free computing configurations.

How it Works & Formula

Calculations done in base 2 (0 and 1)

Converts, adds, subtracts, multiplies, or divides binary numbers.

Practical Examples

Example 1: Binary Addition

1010 (10 in decimal) + 1100 (12 in decimal) = 10110 (22 in decimal).

Frequently Asked Questions

Why do computers use binary?

Computers use transistors which act as electronic switches. These switches can only be in one of two states: ON (represented by 1) or OFF (represented by 0).