HomeCalculatorsElectricalSignals / DSPLogic Gate Calculator
Electrical calculator

Logic Gate Calculator

Evaluate basic digital logic gates from binary inputs. Runs locally in your browser.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Engineering assurance
Input interpretation
Enter values to calculate.
Result
—
Assurance
Engineering
Declared partition coverage
PASS · 2/2 declared partitions (gates, invalid-domain) · Matrix
Known limitations
  • Ideal combinatorial bits only
  • Core CVP does not include live graph, viewport, or pointer interaction.
Model
Basic logic gate outputs.
Scope
Ideal combinational logic
Verification
Engine tested · Source checked · v1.0.0 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Engineering assurance· View Manifest · CVP overview · Specification
Versions
Calculation 1.0.0 · CVP protocol 1.0.0-proposed
CVP identity
2/2 property · digest 18c301fc0b5e
Legacy regression
7/7 tests · Production surface contract 6/6
Trust layers
Verification VERIFIED · Production CURRENT · Overall CVP state: VERIFIED under CVP 1.0.0-proposed
Reference
O1 model · O2 expected_values · O2 numerical_behavior
Interfaces
PASS · UI (SSR) / REST / MCP — ui-ssr is query-result HTML, not a live browser session.
Supplemental domain review
Internal · Pass · electrical-engineer
Named expert review
Not performed
CVP suite
2/2 golden · 2/2 CVP boundary · 3/3 invalid · 2/2 property · 1/1 cross-interface · 4/4 CVP contract · Manifest
Sources
  • Digital design — gate primitives — Truth tables
  • IEEE Std 1364 / digital logic practice — Boolean operators
Sources
Evidence
2 legacy golden · 3 legacy boundary · legacy regression suite · 2/2 oracle-backed golden · 3/3 invalid · Artifact integrity PASS · CalculatorX electrical review
This calculator CURRENT · Public schema 1.0.0 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓
Semantic contract
PASS
Full verification

Manifest identity, reference classes, interfaces, suite, and production records.

Formulas

Core equations used by this calculator.

XORY = A ⊕ B
iCombinational only. No timing or voltage levels.

How to use

1

Choose the gate type

AND, OR, XOR, NAND, NOR, or other modes listed on the form.

2

Enter inputs A and B

Use 0/1 (or true/false) as accepted by the UI.

3

Read output Y

Result follows the selected Boolean function.

Example calculations

Common configurations with formula and result.

ϟ

XOR 1,0

A=1 B=0

1⊕0
Y=1

Logic Gate calculator specification

Version 1.0.0 · Engine tested · Supplemental domain review · Internal · 2026-08-08

Calculation status

Review policy · Evidence · Reviewed by CalculatorX electrical review (electrical-engineer)

Definition
Boolean gates map binary inputs to an output. Supported: AND, OR, NOT, NAND, NOR, XOR, XNOR.
What it calculates
Basic logic gate outputs.
Inputs
  • mode
  • A
  • B
Outputs
  • Y
Formula
Boolean truth
Assumptions
  • Ideal combinational logic
Units
  • 0/1
Boundary conditions
  • Bad mode → INVALID_MODE
  • A/B not 0/1 → INVALID_NUMBER
Example
XOR 1,0 → 1
Validation cases

1 published on this page · 7/7 tests · Production surface contract 6/6 · View evidence

  • xor A=1 B=0 → Y=1
Sources
  • Digital design — gate primitives — Truth tables
    Supports: AND/OR/NOT/XOR definitions
  • IEEE Std 1364 / digital logic practice — Boolean operators
    Supports: Combinatorial gate semantics
Last reviewed
2026-08-08
Reviewed by
CalculatorX electrical review (electrical-engineer)
Calculation version
1.0.0

Background

Interpretation and common distinctions.

Evaluate a logic gate.

Supported and not supported

Supported — Seven common gates · API electrical.digital.logic_gate

Not supported — HDL, propagation delay, multi-bit buses

Agent / API notes

Capability id: electrical.digital.logic_gate · tool id: logic-gate · pin 1.0.0.

Frequently asked questions

Key distinctions behind the calculation.

TTL or CMOS levels?

This tool is abstract Boolean 0/1 only — not electrical thresholds.