AND Calculator
Perform the bitwise AND operation on two numbers. Each output bit is 1 only when both corresponding input bits are 1.
This free online and calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Results
A AND B (Decimal)
12
A (Binary)
111100
B (Binary)
1101
Result (Binary)
1100
How to Use This Calculator
Enter your input values
Fill in all required input fields for the AND Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The AND Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
When to Use This Calculator
- •Use the AND Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
- •Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
- •Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
- •Use it to explore the behavior of mathematical functions across a range of inputs.
Related Calculators
NOR Calculator
Perform the bitwise NOR (NOT OR) operation. Each output bit is 1 only when both corresponding input bits are 0.
OR Calculator
Perform the bitwise OR operation on two numbers. Each output bit is 1 when at least one corresponding input bit is 1.
XOR Calculator
Perform the bitwise XOR (exclusive OR) operation. Each output bit is 1 when the corresponding input bits are different.
Bit Shift Calculator
Perform left shift (<<) and right shift (>>) operations on binary numbers. Shift bits left to multiply by powers of 2, right to divide.
Bitwise Calculator
Perform bitwise AND, OR, XOR, NOT, NAND, NOR, and XNOR operations on binary numbers. Shows truth tables and binary results.
Binary Calculator (All Operations)
Perform all four basic arithmetic operations (+, −, ×, ÷) on binary numbers. See results in binary, decimal, octal, and hexadecimal.
About AND Calculator
The AND operation is the most fundamental bitwise operation. It compares each pair of corresponding bits in two numbers and produces a 1 only when both bits are 1; otherwise it produces 0. AND is used for bit masking — extracting specific bits from a number by ANDing with a mask that has 1s in the positions you want to keep and 0s elsewhere. It is also used for clearing bits (AND with 0 clears), checking if a bit is set (AND with a power of 2), and implementing subnet masks in networking. AND gates are one of the basic building blocks of digital circuits.
The Math Behind It
Formula Reference
AND Truth Table
0&0=0, 0&1=0, 1&0=0, 1&1=1
Variables: Output is 1 only when both inputs are 1
Worked Examples
Example 1: 60 AND 13
Compute bitwise AND of 60 and 13.
60 AND 13 = 12₁₀ = 001100₂
Common Mistakes & Tips
- !Confusing & (bitwise AND) with && (logical AND) in programming.
- !Expecting AND to add or combine values — it only keeps bits where both inputs have 1.
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
How do I check if a specific bit is set?
AND the number with 2^k (or 1 << k) where k is the bit position. If the result is non-zero, bit k is set.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive AND Calculator into your page.
Free to embed — includes a link back to MegaCalc.