Back

If a NOT gate turns zero into one, where does that one come from?

15 October 2026

Understanding the electricity behind logic gates

It sounds like a trick question from a GCSE Computer Science exam: if a NOT gate turns a zero into a one, where does that one actually come from? Surely computers can’t create something from nothing?

The answer lies in understanding what zero and one really mean in digital logic. A logical zero doesn’t mean there’s no electricity. Instead, it represents a specific voltage level, usually close to zero volts. A logical one represents a voltage closer to the chip’s supply voltage.

In other words, the electricity was there all along!

How does a NOT gate work?

A NOT gate is one of the simplest logic gates in Computer Science. Its job is to invert its input: if the input is 0, the output is 1; if the input is 1, the output is 0.

But how does it achieve this physically?

Inside a modern NOT gate is a circuit called a CMOS inverter, built using two types of transistor: PMOS and NMOS. These tiny electronic switches connect the output to either the power supply, known as VDD, or ground.

When the input is low, the PMOS transistor switches on while the NMOS switches off. This connects the output to the power supply, producing a logical 1.

When the input is high, the opposite happens. The PMOS switches off and the NMOS switches on, connecting the output to ground and producing a logical 0.

The NOT gate isn’t creating electricity. It’s simply controlling where the output voltage comes from.

From tiny transistors to powerful processors

This simple process is fundamental to modern computing. Billions of transistors work together inside CPUs, following carefully designed patterns to process data and carry out instructions.

When we talk about a processor making decisions, we’re ultimately talking about electronic circuits switching between different voltage levels.

Understanding how transistors work helps students connect the theory of logic gates and Boolean logic with the physical components inside a computer. It’s a great example of how abstract Computer Science concepts translate into real-world technology.

Why zero and one aren’t quite so simple

There’s one final detail worth understanding: digital logic uses voltage thresholds rather than requiring perfectly exact values.

A logical 0 doesn’t always have to be precisely zero volts, and a logical 1 doesn’t have to equal the supply voltage exactly. Circuits use defined voltage ranges to decide whether a signal should be interpreted as high or low.

These thresholds help computers handle small variations in voltage and electrical noise reliably.

So, the next time someone asks where the 1 comes from when a NOT gate receives a 0, remember: the chip was powered the whole time. The gate simply switches the output to the appropriate voltage level.

Watch the video and explore more

Watch the video to see how a NOT gate works and discover the electronics behind digital logic.

Visit the Craig’n’Dave website at Craigndave.org for more Computer Science videos, teaching resources and revision tools to support your learning.

 

Related posts

The school initiatives worth keeping and the ones worth leaving behind

Are school policies and classroom initiatives genuinely improving learning, or are they creating unnecessary work for teachers? We explore why purpose, consistency and common sense matter more than simply ticking boxes.

6 November 2026

How do recommendation algorithms decide what you see?

Ever wondered how TikTok, YouTube, and Instagram seem to know exactly what you’ll watch next? Recommendation algorithms use your behaviour – not your opinions – to predict what you’ll engage with in real time.

4 November 2026

Why can’t Python count properly?

Ever typed 0.1 + 0.2 in Python and got 0.30000000000000004 instead of 0.3? It’s not a bug – it’s a fascinating quirk of how computers store numbers in binary.

28 October 2026

Beyond the IDE: programming lessons in the age of AI

One of the most persistent challenges in a programming classroom is knowing what every student is doing at any given […]

23 October 2026

Ofsted after the Big Listen: have the rules changed, or just the packaging?

Ofsted has changed its inspection framework, but many school leaders question whether it has changed the culture surrounding inspection. We explore whether report cards can rebuild trust, reduce pressure and create an accountability system that genuinely helps schools improve.

9 October 2026

Should I make my own resources?

Should teachers really be making all their own resources? We explore the balance between creating, buying and adapting resources — and why thoughtful planning matters more than who made them.

5 October 2026

How does age verification technology work?

Can technology really tell how old you are? Explore the computer science behind age verification and the privacy and accuracy questions it raises.

28 September 2026

UTF-8 is witchcraft, right?

Ever wondered how your computer can happily store a simple English letter, an emoji, a pound sign and characters from […]

22 September 2026

Why teaching models keep returning

Teaching frameworks can provide valuable guidance, but when they become rigid formulas, they can undermine professional judgement. The goal isn’t identical lessons – it’s consistently effective teaching.

18 September 2026