Hubs:
Top Tools:
Math β€’ Bitwise Calculator (AND, OR, XOR)

Bitwise Calculator (AND, OR, XOR)

Compute AND, OR, XOR, NOT, and bit-shift operations between two integers, with binary output.

Bin: 101101
Bin: 11011
A & B (AND)
9
1001
A | B (OR)
63
111111
A ^ B (XOR)
54
110110
~A (NOT)
-46
A << 1 (Left Shift)
90
A >> 1 (Right Shift)
22
Be the first person to rate this calculator
AdvertisementIn-Article
Calculation Guide & Reference

Bitwise Logic Operations Mathematics

Bitwise calculator computes AND, OR, XOR, NOT, and bit-shift operations between two integers, with binary output.

Standardized Mathematical Formula
A AND B, A OR B, A XOR B

Bitwise operations compare two numbers bit-by-bit in their binary representation. AND returns 1 only where both bits are 1; OR returns 1 where either bit is 1; XOR returns 1 where exactly one bit is 1.

Variables:
A, B:The two integer operands
How It Works (Step-by-Step)
  • 1Enter two integers, A and B.
  • 2View the result of AND, OR, XOR, NOT, and left/right bit-shift operations.
Real-World Numerical Example
45 AND, OR, XOR 27

Compare 45 (binary 101101) and 27 (binary 011011) using bitwise operations.

β€’AND: 101101 & 011011 = 001001 = 9.
β€’OR: 101101 | 011011 = 111111 = 63.
β€’XOR: 101101 ^ 011011 = 110110 = 54.
Result: 45 AND 27 = 9, 45 OR 27 = 63, and 45 XOR 27 = 54.
Calculation Best Practices & Tips
Examine the discriminant (bΒ² - 4ac) before solving quadratics to instantly know if roots are real, distinct, repeated, or complex.
In statistical analysis, always check both the mean and median to identify if data distribution is skewed by outliers.
When calculating percentage changes, ensure you divide by the original starting baseline value: ((New - Old) / Old) * 100.

Frequently Asked Questions (FAQ)

AND requires both bits to be 1 to produce a 1 (used for "masking" specific bits). OR produces a 1 if either bit is 1 (used for "setting" specific bits).

Shifting left by 1 bit (A << 1) doubles the value β€” it's mathematically equivalent to multiplying by 2. Shifting right by 1 bit halves the value (integer division by 2).

Explore90 MathCalculators

Algebraic solvers, geometric area & volume, matrix operations, prime factorization, and percentages.

More in Math

Top Similar Tools (Math)

Tags:
Looking for More Calculators?

Explore more tools in Math (83+ more calculators available)

Browse our complete directory with category filters, formulas, and verified engines.