Electronics & Circuits
Basic

OR Gate

Output is 1 if either input is 1.

Formula

Y=A+BY = A + B

Live Calculator

Members

Variables

A,BInputs

Example

1+0 = 1

How it works

An OR gate is a basic digital logic device that produces a high output when at least one of its inputs is high. In Boolean algebra, the plus sign means logical OR, not ordinary arithmetic addition, so the output becomes 1 if A = 1, B = 1, or both. This matches many real control situations, such as a device that should turn on if either of two switches is activated.

When to use it

Use this when analyzing or designing circuits where any one of several conditions should activate the output, such as alarm systems, simple control panels, or permission logic in digital circuits. It is also useful when simplifying truth tables and logic expressions in electronics.

Worked example, step by step

Given inputs: A = 0, B = 1 Use the OR operation: Y = A + B Substitute the values: Y = 0 + 1 For OR logic, if either input is 1, the output is 1 So the result is: Y = 1

Common mistakes to avoid

  • Treating + as arithmetic addition instead of logical OR
  • Assuming the output is 0 unless both inputs are 1
  • Forgetting that one high input is enough to make the output high

Did You Know?

The OR gate outputs true if any input is true, and combinations of such gates can compute anything.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026