Computers use a special way to count. They only use two signs. These signs are zero and one. This helps machines work fast. It is like a secret code. 
Most computers use a secret code. This code uses only two signs. These signs are zero and one. 
Long ago, many people used this idea. Ancient Egyptians used it to measure grain.
In China, people used symbols for patterns. These patterns looked like lines.
A man named Leibniz studied these signs. He showed how to add and subtract. He wrote many papers about them.
Today, almost all computers use this system. It is a simple way to talk. It helps machines work very well.
Most computers use a special code. This code is called binary. It uses only two signs: zero and one. Each sign is called a bit. 
Many cultures used binary ideas long ago. Ancient Egyptians used it for fractions. They used it to measure grain and liquids.
Gottfried Leibniz studied binary deeply. He showed how to add and subtract with it. He even found links to the Chinese patterns. 

Imagine a world where you only have two choices. You could use a light switch that is either on or off. This simple idea is the heart of the binary number system. Binary uses only two symbols, which are usually zero and one. Each of these single digits is called a bit. 
Binary ideas have appeared in many different cultures throughout history. Ancient Egyptians used a binary system for fractions. They used these parts to measure things like grain or liquids.
Many people worked to understand how these two-part systems work. In the 16th and 17th centuries, thinkers like Thomas Harriot studied them. A man named Ramon Llull also used binary combinations to organize knowledge. Later, Francis Bacon suggested that letters could be turned into binary codes. He thought you could use bells or torches to send these signals. In 1617, John Napier described a way to do math using letters. These early ideas helped build the path toward modern computing science.
Gottfried Leibniz is one of the most famous names in binary history. He wrote many papers about how to use zero and one. In 1679, he showed how to add and subtract using these digits. 

Modern technology grew from these old mathematical ideas. In 1854, George Boole created a new way to use logic in math. 
A binary number is a value expressed in the base-2 numeral system. Unlike the decimal system we use daily, binary relies on only two symbols: zero and one. Each individual digit in this system is known as a bit, which is short for binary digit. This system uses positional notation with a radix of 2. This means the position of each bit determines its specific value. Binary can also represent rational numbers. These are numbers formed by dividing an integer by a power of two. 
Modern computing relies almost entirely on this system. Digital electronic circuitry implements binary through the use of logic gates. This method is preferred by nearly all modern computers and digital devices. The simplicity of the language provides high noise immunity in physical implementation. This means the system is very resistant to errors caused by electrical interference. Because electronic states are easily divided into two distinct levels, binary is the most efficient way for hardware to process information.
Binary concepts appeared in many ancient cultures long before modern computers. In Egypt, scribes used Horus-Eye fractions to measure grain and liquids. This system expressed fractions as sums of 1/2, 1/4, 1/8, 1/16, 1/32, and 1/64. Early documents from the Fifth Dynasty date to approximately 2400 BC. The fully developed hieroglyphic form appeared during the Nineteenth Dynasty around 1200 BC.
Other civilizations developed unique binary-style systems for different purposes. In China, the I Ching used binary notation for divination as early as the 9th century BC. It utilized eight trigrams and 64 hexagrams, which are analogous to three-bit and six-bit binary numerals. The Song dynasty scholar Shao Yong rearranged these hexagrams into a format resembling modern binary. In India, the scholar Pingala developed a binary system around the 2nd century BC. He used it to describe prosody, or the rhythm of poetry. He categorized syllables as laghu (light) or guru (heavy). His system in the Chandaḥśāstra increased values toward the right rather than the left.
West African traditions also feature sophisticated binary systems. The Yoruba people used the Ifá divination system, which originated in the 15th century. This system can produce up to 256 binary signs. This total comes from squaring 16, matching the possibilities of an 8-bit sequence. Divination is performed using an Ọpẹlẹ chain containing 8 seeds. Each seed can land in one of two positions: open or closed. This creates all possible combinations known as Odú. UNESCO added Ifá to its list of Masterpieces of the Oral and Intangible Heritage of Humanity in 2008.
European thinkers laid the groundwork for modern binary mathematics. In the 13th century, Ramon Llull used binary combinations to organize human knowledge. In 1605, Francis Bacon suggested encoding the alphabet into binary sequences. He noted this could be done with any object that has a twofold difference, such as bells or torches. In 1617, John Napier described location arithmetic for binary calculations. Thomas Harriot also investigated positional numbering systems, including binary, though he did not publish his findings. The first European publication of the system likely came from Juan Caramuel y Lobkowitz in 1700.
Gottfried Leibniz is a central figure in the history of binary. He wrote over a hundred manuscripts on the subject. In 1679, his work "On the Binary Progression" introduced methods to convert between decimal and binary. He also created algorithms for binary addition, subtraction, multiplication, and division. Leibniz even developed a binary algebra to calculate square roots. 

The transition from theoretical math to digital hardware required further breakthroughs. In 1854, George Boole published his work on an algebraic system of logic. This became known as Boolean algebra. 
🖼️ Images & Media (9)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.