AND Calculator
Our free binary calculator solves andcalculator problems. Get worked examples, visual aids, and downloadable results.
Formula
A AND B: Output bit = 1 only when both input bits = 1
The AND operation compares each bit of two numbers. For each bit position, the result is 1 if and only if both corresponding bits in the inputs are 1. Otherwise the result is 0. This is the most fundamental logical operation in digital computing.
Worked Examples
Example 1: Basic AND Operation with 8-bit Numbers
Problem: Calculate the AND of binary 10110110 (182) and 11010100 (212).
Solution: Align both numbers and apply AND bit by bit:\n 10110110 (182)\n& 11010100 (212)\n----------\n 10010100 (148)\n\nBit 7: 1 AND 1 = 1\nBit 6: 0 AND 1 = 0\nBit 5: 1 AND 0 = 0\nBit 4: 1 AND 1 = 1\nBit 3: 0 AND 0 = 0\nBit 2: 1 AND 1 = 1\nBit 1: 1 AND 0 = 0\nBit 0: 0 AND 0 = 0
Result: 10110110 AND 11010100 = 10010100 (decimal 148, hex 0x94)
Example 2: Subnet Mask AND Operation
Problem: Find the network address by ANDing IP 192.168.5.130 with subnet mask 255.255.255.192.
Solution: Convert last octet to binary:\n130 = 10000010\n192 = 11000000\n\nAND operation on last octet:\n 10000010 (130)\n& 11000000 (192)\n----------\n 10000000 (128)\n\nFirst three octets: 192 AND 255 = 192, 168 AND 255 = 168, 5 AND 255 = 5
Result: Network address: 192.168.5.128 (the host is on the .128 subnet)
Frequently Asked Questions
How accurate are the results from AND Calculator?
All calculations use established mathematical formulas and are performed with high-precision arithmetic. Results are accurate to the precision shown. For critical decisions in finance, medicine, or engineering, always verify results with a qualified professional.
Is my data stored or sent to a server?
No. All calculations run entirely in your browser using JavaScript. No data you enter is ever transmitted to any server or stored anywhere. Your inputs remain completely private.
Can I use AND Calculator on a mobile device?
Yes. All calculators on NovaCalculator are fully responsive and work on smartphones, tablets, and desktops. The layout adapts automatically to your screen size.
What formula does AND Calculator use?
The formula used is described in the Formula section on this page. It is based on widely accepted standards in the relevant field. If you need a specific reference or citation, the References section provides links to authoritative sources.
How do I get the most accurate result?
Enter values as precisely as possible using the correct units for each field. Check that you have selected the right unit (e.g. kilograms vs pounds, meters vs feet) before calculating. Rounding inputs early can reduce output precision.
How do I interpret the result?
Results are displayed with a label and unit to help you understand the output. Many calculators include a short explanation or classification below the result (for example, a BMI category or risk level). Refer to the worked examples section on this page for real-world context.