Logic Gate Calculator
Evaluate basic digital logic gates from binary inputs. Runs locally in your browser.
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 debd31f2f3aa
- Legacy regression
- 7/7 tests · Production surface contract 4/4
- Reference
- O1 model · O2 expected_values · O2 numerical_behavior
- Interfaces
- PASS · UI (SSR) / REST / MCP
- Supplemental domain review
- Internal · Pass · electrical-engineer
- Named expert review
- Not performed
- CVP suite
- 2/2 golden · 3/3 CVP boundary · 3/3 invalid · 2/2 property · 1/1 cross-interface · 1/1 CVP contract · Manifest
- Sources
- Digital design — gate primitives
- IEEE Std 1364 / digital logic practice
- Evidence
- 2 legacy golden · 3 legacy boundary · legacy regression suite · 2/2 oracle-backed golden · 3/3 invalid · Artifact integrity PASS · CalculatorX electrical review
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Choose the gate type
AND, OR, XOR, NAND, NOR, or other modes listed on the form.
Enter inputs A and B
Use 0/1 (or true/false) as accepted by the UI.
Read output Y
Result follows the selected Boolean function.
Example calculations
Common configurations with formula and result.
XOR 1,0
A=1 B=0
Logic Gate calculator specification
Version 1.0.0 · Engine tested · Supplemental domain review · Internal · 2026-08-08
- Engine tested 7/7 tests · Production surface contract 4/4
- Supplemental domain review Internal · Pass · electrical-engineer · 2026-08-08
- Named expert review Not performed
- Calculation version 1.0.0
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 4/4 · View evidence
- xor A=1 B=0 → Y=1
- Sources
- Digital design — gate primitives — Truth tablesSupports: AND/OR/NOT/XOR definitions
- IEEE Std 1364 / digital logic practice — Boolean operatorsSupports: Combinatorial gate semantics
- Digital design — gate primitives — Truth tables
- 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.
Related tools
Other calculators in this family: ADC SNR / Quantization Calculator, High-Pass Filter Calculator, Low-Pass Filter Calculator . Explore all Signals / DSP.
Frequently asked questions
Key distinctions behind the calculation.
TTL or CMOS levels?
This tool is abstract Boolean 0/1 only — not electrical thresholds.