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

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

Do GCSEs doom students to fail?

GCSE results may look stubbornly flat, but the reality behind the numbers tells a very different story. Why has further improvement become so difficult, and are we measuring success in the right way?

11 September 2026

Will Quantum Computers Break Encryption?

Could quantum computers really break encryption and put our data at risk? We explore the reality behind the hype, from qubits and Shor’s Algorithm to the future of post-quantum security.

7 September 2026

Is AI a panacea?

AI is moving from experimentation to expectation in schools. But as adoption grows, the focus must shift from simply using AI to using it well. Discover how schools can balance workload, learning, safety and professional judgement — without losing the human element of great teaching.

4 September 2026

Digital ID cards: The future of work or a privacy nightmare?

Are digital ID cards the future of convenience or a threat to privacy? Explore the benefits, risks, and debate behind the UK’s proposed digital ID system.

31 August 2026