ToolSnippet

Binary & Hex Arithmetic Calculator

Perform addition, subtraction, multiplication, and division directly on Binary, Hexadecimal, and Octal numbers.

About This Tool

The Binary & Hex Arithmetic Calculator executes integer arithmetic (+, −, ×, ÷) directly on Binary (0b), Hexadecimal (0x), Octal (0o), and Decimal numbers with multi-base results.

Key Features

Arithmetic operations: Add (+), Subtract (−), Multiply (×), Divide (÷), and Modulo (%)
Supports Binary, Hex, Octal, and Decimal input bases
Simultaneous results in Binary, Hexadecimal, Octal, and Decimal
Two's complement bit length selection (8-bit, 16-bit, 32-bit, 64-bit)

How to Use This Tool

  1. Select your input numeral base (Binary, Hex, Octal, or Decimal).
  2. Enter Value 1 and Value 2.
  3. Select the arithmetic operation.
  4. View the calculated result in all 4 numeral bases.

Why Use This Tool

  • Calculate memory offsets, buffer addresses, and register math.
  • Perform low-level firmware binary calculations.

Pro Tips

  • Hex values can be prefixed with `0x` and binary values with `0b`.

Frequently Asked Questions

How does binary addition work with carries?

0+0=0, 0+1=1, 1+0=1, and 1+1=10 (0 with a carry of 1 to the next left column).

What is two's complement representation?

Two's complement represents signed negative integers by inverting all bits and adding 1 to the least significant bit.

Related Tools