Binary Arithmetic Calculator

Perform arithmetic with two decimal numbers and see the results. Also shows bitwise AND and OR operations.

Sum Val

57

Diff Val27
And Val10
Or Val47
Xor Val37

Binary Arithmetic

Bitwise Operations

  • AND: both bits must be 1 → result is 1
  • OR: at least one bit must be 1 → result is 1
  • XOR: exactly one bit must be 1 → result is 1
  • Example: 42 AND 15

  • 42 in binary: 101010
  • 15 in binary: 001111
  • AND result: 001010 = 10
  • Bitwise operations work on individual bits of the binary representation.

    Example Calculation

    Binary operations on 42 and 15.

    1. 0142 + 15 = 57
    2. 0242 - 15 = 27
    3. 0342 AND 15: 101010 AND 001111 = 001010 = 10
    4. 0442 OR 15: 101010 OR 001111 = 101111 = 47
    5. 0542 XOR 15: 101010 XOR 001111 = 100101 = 37

    Frequently Asked Questions

    Learn More

    How to Calculate Percentages - Complete Guide

    Learn how to calculate percentages step by step. Covers finding a percentage of a number, percentage change, reverse percentages, and real-world applications.

    Related Calculators