OR Calculator
Evaluate logical OR for Boolean values, binary sequences, and decimal integers with an instant truth-table reference.
OR Truth Table
| A | B | A OR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
About the OR Operation
OR Calculator Examples
| Input | Output | Explanation |
|---|---|---|
| true OR false | true | At least one Boolean input is true. |
| 1010 OR 1100 | 1110 | Each result position is one when either aligned bit is one. |
| 10 OR 12 | 14 | Decimal values 10 and 12 are binary 1010 and 1100. |
How to Use the OR Calculator
- Choose Boolean OR, Binary OR, or Bitwise OR to match the representation of your values.
- Enter the first and second values in the selected format.
- Click Calculate OR to apply inclusive OR to the pair.
- Read the result and compare Boolean inputs with the truth table when needed.
OR Calculator FAQ
When does Boolean OR return false?
Boolean OR returns false only when both inputs are false. If either input or both inputs are true, the result is true.
How is OR different from XOR?
OR is inclusive and returns true when both inputs are true. XOR is exclusive and returns false when the inputs are both true.
How are binary numbers of different lengths aligned?
They are aligned on the right by their least significant bits. The shorter value is padded on the left with zeros before each position is compared.
What is bitwise OR used for in programming?
It commonly sets one or more flags in an integer bit mask. Existing set bits stay set, while positions selected by the new mask become set.
Does this calculator use inclusive OR?
Yes, every mode uses inclusive OR. The case one OR one therefore produces one rather than zero.