Every CMOS logic chip, from a 74HC04 on a breadboard to the billions of gates in a phone processor, is built from the same two-transistor pattern. One transistor pulls the output up to the supply, the other pulls it down to ground, and they are wired so that only one is ever fully on. That arrangement is why a CMOS gate that is not switching draws almost no current. It is also why a CMOS input left floating, or fed a slow ramp, can waste power and heat a chip. A circuit simulation run for this post traces both behaviours, and Texas Instruments datasheets put real numbers on them.
Two transistors, one output
The pull-up and the pull-down
A CMOS inverter stacks a p-channel MOSFET on top of an n-channel MOSFET. Their gates are tied together and form the input. Their drains are tied together and form the output. The p-channel transistor’s source connects to the supply, and the n-channel transistor’s source connects to ground.
A p-channel MOSFET turns on when its gate is pulled low relative to its source. An n-channel MOSFET turns on when its gate is pulled high. With the input at 0 V, the top transistor conducts, the bottom one is off, and the output sits at the supply voltage. With the input at the supply voltage, the roles reverse and the output sits at ground. The output is always the logical opposite of the input.
Why “complementary”
The C in CMOS stands for complementary: the two transistor types complement each other, one handling each direction. In either steady state, one of the two is off, so there is no direct path from supply to ground. Current flows only while the output is changing, to charge or discharge whatever capacitance the output drives.

Simulating the transfer curve
The setup
To see what happens between the two clean states, the inverter was simulated in ngspice-42 with generic level-1 MOSFET models, not models of any real chip. The n-channel device had a threshold of 0.7 V, the p-channel −0.7 V, and their sizes were set so that both transistors were equally strong. The supply was 5 V, and the input was swept from 0 to 5 V in 10 mV steps while the simulation recorded the output voltage and the current drawn from the supply.
The curve
| Input | Output | Supply current |
|---|---|---|
| 0 V | 5.00 V | about 5 pA |
| 1.0 V | 4.985 V | 9.9 µA |
| 1.5 V | 4.872 V | 70.2 µA |
| 2.0 V | 4.561 V | 184.4 µA |
| 2.5 V | 2.500 V | 340.2 µA |
| 3.0 V | 0.439 V | 184.4 µA |
| 3.5 V | 0.128 V | 70.2 µA |
| 4.0 V | 0.015 V | 9.9 µA |
| 5 V | about 0 V | about 5 pA |
The output stayed near 5 V until the input passed about 2 V, then fell steeply. The steep section, where a small change in input caused a larger change in output, ran from 2.02 to 2.98 V. The switching point, where output equalled input, landed at 2.50 V, exactly half the supply, because the two transistors were sized to match.
What the current column shows
At either end of the sweep, the supply current was a few picoamps, the leakage figure the simple model allows. In the middle, both transistors were partly on at once and current flowed straight through them from supply to ground, peaking at 340 µA at the switching point. That through current is the price of an input that sits between the rails.
What real chips specify
Input thresholds
A real logic family does not publish a single switching point. It publishes guaranteed ranges. The SN74HC04 datasheet (TI document SCLS078H) lists the recommended high-level input voltage, VIH, as at least 3.15 V at a 4.5 V supply, and the low-level input voltage, VIL, as at most 1.35 V. Anything between those two numbers is not guaranteed to read as either logic level.
| Supply | VIH (min) | VIL (max) |
|---|---|---|
| 2 V | 1.5 V | 0.5 V |
| 4.5 V | 3.15 V | 1.35 V |
| 6 V | 4.2 V | 1.8 V |
The simulated curve sits comfortably inside that window: at 1.35 V input the model’s output was still high, and at 3.15 V it was already low. The datasheet’s numbers are wider because they cover every chip from every production run across temperature, not one idealised pair of transistors.
Static current
The same datasheet lists the supply current with inputs at the rails, ICC, as 2 µA typical and 20 µA maximum at 6 V for the whole six-gate chip. That is the “almost nothing” CMOS is known for.

Where the power actually goes
Static versus dynamic
TI’s application note SCAA035B, “CMOS Power Consumption and Cpd Calculation”, separates the two parts. It says “CMOS devices have very low static power consumption, which is the result of leakage current,” while “dynamic power consumption can contribute significantly to overall power consumption.” The dynamic part comes from charging the chip’s own internal capacitance and the load capacitance every time the output switches. The note gives each as a capacitance multiplied by the supply voltage squared and by the switching frequency.
A worked example
The SN74HC04 datasheet gives a power dissipation capacitance, Cpd, of 20 pF per gate. Driving a 50 pF load at 1 MHz from a 4.5 V supply:
(20 pF + 50 pF) × (4.5 V)² × 1,000,000 per second = 1.42 mW per switching gate.
The chip’s typical static current at that supply would add about 9 µW, roughly a hundred and fifty times less. In a CMOS circuit that is doing anything, switching is the bill and leakage is the rounding error. The supply voltage enters squared, which is why dropping a logic supply from 5 V to 3.3 V cuts dynamic power by more than half.
Slow edges and through current
The application note also covers the current the simulation showed in the middle of the sweep. It says that “while an input is switching, there is a brief period when both p-channel and n-channel transistors are conducting,” and that the cost depends on “the amount of time the input signal is at some level other than VCC or GND.” For fast edges, the note says, “the through current of the gate is negligible compared to the switching current.”
Slow edges are a different story. An input that crawls from 0 to 5 V over milliseconds spends that whole time in the region where the simulation drew hundreds of microamps.
Floating inputs and other traps
Never leave a CMOS input open
A CMOS input is just the two gates, with input capacitance the SN74HC04 datasheet lists at 3 pF typical. Left unconnected, it has nothing holding it at either rail. It can drift to the middle of the range, where both transistors conduct, and sit there drawing through current while the output wanders. Unused inputs on a chip like the 74HC04 should be tied to ground or the supply, even when the gate they belong to does nothing.
Slow signals need a Schmitt input
When a slow signal must drive CMOS logic, such as a sensor voltage or an RC delay, a gate with hysteresis, like the 74HC14, is the usual fix. It switches once, quickly, instead of lingering in the through-current zone and possibly oscillating on noise.
For breadboard experiments with plain inverters:
- 20PCS SN74HC04N 74HC04 SN74HC04 Hex Inverters DIP14 Silicon−Gate CMOS IC: a twenty-pack of the through-hole 74HC04, six inverters per chip, for building and measuring the circuits described here. See it on Amazon (affiliate link)
As an Amazon Associate I earn from qualifying purchases. A commission may be earned if you buy through this link, at no extra cost to you.

From one inverter to every gate
NAND and NOR
The inverter is the smallest CMOS gate, and every other gate extends the same idea. A two-input NAND puts two n-channel transistors in series to ground and two p-channel transistors in parallel to the supply. The output is pulled low only when both inputs are high. A NOR swaps the arrangement: n-channel in parallel, p-channel in series. In both, one network or the other is always off in a steady state, so the near-zero static current carries over.
Speed comes from capacitance
The SN74HC04 datasheet lists a typical propagation delay of 9 ns at 4.5 V with a 50 pF load. Much of that time is spent charging the load through the on-resistance of one transistor. A lighter load or a stronger transistor switches faster, and that trade between size, speed and power is the same one chip designers face with every gate on a processor, just multiplied by a few billion.
Sources
- Texas Instruments, SN74HC04 datasheet, SCLS078H (revised April 2021): https://www.ti.com/lit/ds/symlink/sn74hc04.pdf
- Texas Instruments, SCAA035B, “CMOS Power Consumption and Cpd Calculation” (June 1997): https://www.ti.com/lit/an/scaa035b/scaa035b.pdf
