Home · Everyday · Bases, Binary & Logic · AND Calculator

AND Calculator

The AND gate: output 1 only when both inputs are 1 — with the full truth table.

Your figures

Example result — edit the figures to make it yours

1

AND output

A logic gate maps input bits to one output bit by its truth table — the complete definition of the gate is the table itself.

AND truth table
ABOutput
000
010
100
111

What this calculator does

The AND gate: output 1 only when both inputs are 1 — with the full truth table. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

AND: 1 only if A = 1 and B = 1

Digits are validated against the chosen base — a binary field rejects the digit 2.

Conversion goes through the exact integer value, so results are exact for the sizes accepted.

Negative values keep their sign in every base.

Worked example

With the example inputs this page opens with, the result is 1 — and output. A logic gate maps input bits to one output bit by its truth table — the complete definition of the gate is the table itself.

Quick reference

AND truth table
ABOutput
000
010
100
111

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the AND Calculator work?

The AND gate: output 1 only when both inputs are 1 — with the full truth table. A · B → AND output. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the AND Calculator need?

A · B → AND output. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the AND Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.