Formula & Calculator

Boolean OR Operation

The logical OR function outputs true when at least one input is true.

Digital ElectronicsBoolean Algebra

Boolean OR Calculator Logic Operation

Y = A + B
Y = output (0 or 1)  ·  A, B = inputs (0 or 1)  ·  Boolean OR: output is 1 if at least one input is 1.
⟹ Solve A, B, Y
bit
bit
bit
Please fix the errors above.
Solve for:
Presets:
Output Y
A: B: Y:
✓ Copied!
Boolean Status
0 (False) 1 (True)
Y = A + B (OR)  ·  Output is 1 if A=1 or B=1 (or both), otherwise 0.

Interpretation

Boolean OR operation: output Y is 1 if at least one input is 1; it is 0 only when all inputs are 0.
It is equivalent to logical addition.
Example: A=0, B=1 → Y = 0+1 = 1; A=0, B=0 → Y = 0.

Y = A + B
Boolean OR Operation

Variables

SymbolQuantityUnit
YOutputdimensionless
AInput Adimensionless
BInput Bdimensionless

What it means

The Boolean OR operation outputs a 1 when at least one input is 1. It is equivalent to logical addition. For two inputs A and B, Y = A + B. The truth table shows Y=0 only when both A and B are 0. The OR gate is used in digital circuits to combine signals, for example, in priority encoders and interrupt systems. In programming, the logical OR is represented by ||. The OR operation is associative and commutative. Example: A=0, B=1 → Y = 0+1 = 1. A=0, B=0 → Y = 0. This is used to generate active‑high enable signals and to implement logic functions in programmable logic devices.

Worked example

Boolean OR – Practical Example

Real‑World
Scenario: A warning light should turn on if either the temperature is too high (A=1) OR the pressure is too low (B=1). Y = A + B.
ParameterValue
Temp (A)0 (normal)
Pressure (B)1 (low)
FormulaY = A + B
1Y = 0 + 1 = 1
Final Design Y = 1 (Warning ON) ✓ Condition detected
Why: OR output is 1 if at least one input is true – it alerts on any fault.

Common mistakes

Watch unit consistency and the assumptions behind the formula; misapplying it outside its valid conditions is the most frequent error.

Applications

Boolean OR operation Y = A + B yields 1 when at least one input is 1. This is another basic logic gate, used in digital circuits for logical disjunction. Engineers use it in priority encoders, combinational logic, and bus systems. Like AND, the OR gate is a fundamental building block of digital electronics. By combining OR and AND with NOT gates, any logic function can be implemented. Understanding the OR operation is crucial for digital design and Boolean algebra. This operation is used in all digital systems, from simple circuits to complex processors.

  • Digital logic design and circuit synthesis
  • Encoder, priority encoder, and comparator design
  • Boolean algebra and combinational logic
  • Bus and data routing circuits
  • Educational foundation of digital electronics

Frequently Asked Questions

Q01What is the Boolean OR operation and how is it represented?
A01

The OR operation outputs true (1) when at least one input is true. The expression is Y = A + B (or A | B). It is the logical disjunction.

Q02What is the truth table for OR?
A02

For two inputs: A=0,B=0→0; 0,1→1; 1,0→1; 1,1→1.

Q03How is OR implemented in digital circuits?
A03

Using an OR gate (e.g., 74LS32). It can also be implemented using NOR gates.

Q04What are the properties of the OR operation?
A04

Commutative: A+B = B+A; Associative: (A+B)+C = A+(B+C); Identity: A+0 = A; Annihilator: A+1 = 1; Idempotent: A+A = A.

Q05What is the dual of the OR operation?
A05

The dual is the AND operation. De Morgan's theorem: (A+B)' = A'·B'.

Q06How is OR used in digital design?
A06

Used in address decoding, priority encoders, and combining conditions.

Q07What are the common mistakes when using OR?
A07

Common errors: 1) confusing with AND, 2) forgetting the identity rules, 3) using it for arithmetic (use addition for numbers), 4) applying to non-binary values.

Q08What is the difference between logical OR and bitwise OR?
A08

Logical OR operates on Boolean values; bitwise OR operates on each bit (e.g., 1010 | 1100 = 1110).