- Base 2 result
- 1101
- Decimal
- 13
How it works

A sign is different from bit encoding
In this signed-integer calculator, 11111111 represents decimal 255. It does not automatically mean −1 as it can in eight-bit two’s-complement encoding. Enter an explicit minus sign when you mean a negative value.
The same byte can represent two integers
- Bit pattern
- 11111111

| Interpretation | Calculation | Decimal value |
|---|---|---|
| A Unsigned | 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 | 255 |
| B Signed | −128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 | -1 |
Distinguishing binary values from decimal values
Binary notation uses a different place-value base from ordinary decimal notation. The same written sequence of digits can therefore represent a different amount depending on the chosen base. Select conversion mode when changing notation and arithmetic mode when operating on binary inputs. Keep leading zeros only when a fixed bit width is relevant to your separate application.
Read binary digits as powers of two
Binary uses only 0 and 1. From right to left, the place values are 1, 2, 4, 8, 16 and so on. Enter the digits without a 0b prefix in the arithmetic fields. A leading minus sign represents an ordinary signed integer.
Arithmetic operates on whole-number values rather than fixed-width machine registers. Leading zeros do not request an 8-bit, 16-bit or two’s-complement interpretation.
Check binary addition through decimal values
The binary number 101101 equals 32+8+4+1=45. The number 111 equals 7. Adding them gives decimal 52, written 110100 in binary. Both the base-2 result and decimal result help check whether the intended base was used.
| Place value | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|
| Digit | 1 | 0 | 1 | 1 | 0 | 1 |
| Contribution | 32 | 0 | 8 | 4 | 0 | 1 |
Use the conversion mode for a number in a different base
Select Convert decimal and binary, then choose whether the supplied number is decimal or binary. Decimal 45 converts to binary 101101. Entering 45 into a binary arithmetic field is invalid because digits 4 and 5 do not exist in base 2.
The conversion uses integer arithmetic. This tool does not parse binary fractions such as 0.101, apply a bit-width overflow rule or execute bitwise AND/OR operations.
Interpret quotient and remainder without assuming a fractional expansion
Binary integer division of 1101 by 11 corresponds to 13÷3: the quotient is 100 and remainder 1, meaning 4 remainder 1 in decimal. A fractional binary expansion is not generated by this operation.
For negative inputs, integer division truncates toward zero and the remainder follows the dividend’s sign. If a programming task requires a particular fixed-width encoding, supply and apply that rule separately.
Arithmetic: formula and assumptions
Convert positional digits to integers, perform the operation, and convert back to the chosen base.
Division returns the integer quotient and remainder. Inputs use no prefixes.
Convert decimal and binary: formula and assumptions
Interpret positional digits, then format the exact integer in the other base.
Signed integers are supported. No floating-point conversion is used.
Worked example
Using the Arithmetic example:
- First number
- 1010
- Operation
- Add
- Second number
- 11
Convert positional digits to integers, perform the operation, and convert back to the chosen base.
Example result
Base 2 result: 1101
Decimal: 13
These are illustrative inputs. Change the values to explore a different scenario.
Formula references
References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.
Common questions
Should I include a 0b prefix with a binary input?
No. Enter the binary digits directly. The selected mode already establishes the base.
Does binary division return a repeating fractional expansion?
No. The arithmetic mode returns an integer quotient and remainder rather than a fractional binary expansion.
What happens to leading zeros?
They do not change the integer value. The result is not padded to a chosen bit width.
Does the calculator use two’s-complement signed integers?
No. A leading minus sign denotes an ordinary signed integer. Fixed-width encodings and overflow rules are separate tasks.
How can I check a binary sum in decimal?
The arithmetic result includes its decimal value. For example, 101101₂ + 111₂ is 110100₂, corresponding to 45 + 7 = 52.
See our methodology and editorial policy.
