Class 12 · Physics · Semiconductors & Electronics

XOR Boolean expression

CBSEJEE MainJEE AdvancedNEETAP PhysicsIBA-Level

Equation

A⊕B=AˉB+ABˉA\oplus B=\bar AB+A\bar B

How this formula is built

Follow the steps, equations, and example so you can rebuild it yourself in the exam — not only memorise the final line.

A⊕B=AˉB+ABˉA\oplus B=\bar AB+A\bar B

Here XOR is high exactly when the two binary inputs differ.

  1. 1

    Start from the device model

    Use the carrier or circuit definition for XOR Boolean expression.

    Y=1 for (A,B)=(0,1),(1,0)Y=1\text{ for }(A,B)=(0,1),(1,0)
  2. 2

    Substitute device quantities

    Apply the operating assumptions and rearrange.

    Y=(AˉB)+(ABˉ)Y=(\bar A B)+(A\bar B)
  3. 3

    Working equation

    Write the standard electronics relation.

    A⊕B=AˉB+ABˉA\oplus B=\bar AB+A\bar B
    A⊕B=AˉB+ABˉA\oplus B=\bar AB+A\bar B

    Final form — rebuild these steps in the exam, then substitute values.

Worked example

Evaluate XOR for A=1, B=0.

Y=1ˉ(0)+10ˉY=\bar1(0)+1\bar0
Y=0+1=1Y=0+1=1
A⊕B=1A\oplus B=1

Check: The unequal inputs correctly give a high output.

Symbols & units

  • A⊕BA\oplus BExclusive-OR output

XOR Boolean expression for Class 12 Physics (Semiconductors & Electronics): equation, symbols, step-by-step derivation and worked example. Free formula sheet for CBSE, JEE Main, JEE Advanced.

Related formulas

← All formulas

Need XOR Boolean expression on a real exam question?

Scan the problem and watch the whiteboard build this formula with the correct signs and units.