Logic gate
What is a logic gate?
A logic gate is a small device that works with Boolean functions. A Boolean function is a logical operation that uses 0s and 1s. A logic gate takes in some 0s and 1s and gives back one answer, which is also a 0 or a 1.
Most logic gates are made with tiny parts called MOSFETs. These are special transistors, which are like electronic switches. Each switch can be turned on or off, and that is how the gate makes its choice.
Gates in computers
Logic gates can be joined together in a chain, like a line of helpers passing along a message. Engineers use them to build things like registers, multiplexers, and computer memory. With enough gates, they can even build a whole microprocessor, which is the brain of a computer. Some microprocessors have more than 100 million logic gates!
There are seven basic logic gates. They have names like NOT, NAND, XOR, and XNOR. Each one follows its own simple rule for turning inputs into an output.
Long ago
People have been thinking about logic gates for a long time. In 1705, Gottfried Wilhelm Leibniz helped improve the binary number system, which uses only 0s and 1s. In 1837, Charles Babbage designed a machine called an analytical engine. It used gears to do logic.
Today, logic gates are found inside almost every computer. They help computers think and solve problems.

Quiz time!
3 questions about Logic gate
What do logic gates work with?
Pictures
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Logic gate, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.