Fan-In and Fan-Out in Digital Electronics | Skill-Lync Resources
Easy VLSI Design Digital Design

What are fan-in and fan-out in logic gates?

By the Skill-Lync engineering team · Last updated

Answer

Fan-in is the number of inputs a logic gate has. Fan-out is the number of gate inputs one output can drive within spec. For TTL it is min(IOL/IIL, IOH/IIH) from the datasheet: 10 for a standard 7400 and 20 for a 74LS00. In CMOS, load capacitance and delay set fan-out, and fan-in above 4 slows a gate sharply.

What are fan-in and fan-out?

Fan-in is the number of inputs a gate has: a 4-input NAND has a fan-in of 4. Fan-out is the number of gate inputs one output can drive while every voltage level and timing figure stays inside the datasheet or library limits. Fan-in is fixed by the gate design. Fan-out depends on what you connect to the output.

Fan-out has two working definitions, and interviewers expect both. For TTL and CMOS chips on a board it is a DC current budget read from the datasheet. In VLSI it is a capacitance and delay budget that synthesis tools enforce for you.

How do you calculate fan-out from a datasheet?

Divide what the output can supply by what each input draws, separately for the low and the high state, and keep the smaller answer. The low state uses IOL/IIL, the high state uses IOH/IIH. With Texas Instruments' own tables, standard 7400 TTL gives 10 and 74LS00 gives 20.

$$N = \min\left(\left\lfloor \frac{I_{OL}}{|I_{IL}|} \right\rfloor,\; \left\lfloor \frac{|I_{OH}|}{I_{IH}} \right\rfloor\right)$$

In the low state the driver must sink the current that flows out of every TTL input. In the high state it sources the much smaller current flowing into each input. TI writes current leaving a pin as a negative number, so IOH and IIL carry a minus sign in the datasheet; use magnitudes.

Datasheet values used on this page and in the calculator (the table scrolls sideways on phones):

Part (TI document)IOL|IOH||IIL|IIHVOH minVOL maxVIHVIL
SN7400 (SDLS025D)16 mA0.4 mA1.6 mA40 µA2.4 V0.4 V2 V0.8 V
SN74LS00 (SDLS025D)8 mA0.4 mA0.4 mA20 µA2.5 V0.5 V2 V0.8 V
SN74S00 (SDLS025D)20 mA1 mA2 mA50 µA2.5 V0.5 V2 V0.8 V
SN74HC00, 4.5 V (SCLS181H)4 mA4 mA1 µA1 µA3.84 V0.33 V3.15 V1.35 V
SN74HCT00 inputs (SCLS062F)n/an/a1 µA1 µAn/an/a2 V0.8 V

TTL rows: Recommended Operating Conditions and Electrical Characteristics, 0 to 70 °C. HC rows: the VOH/VOL test currents at VCC = 4.5 V, −40 to 85 °C. CMOS inputs only leak, so IIL and IIH are the ±1 µA input leakage limit.

Skill-Lync's worked example: four TTL connections

Driver → loadLow stateHigh stateFan-outSet by
7400 → 740016 / 1.6 = 100.4 / 0.04 = 1010both
74LS00 → 74LS008 / 0.4 = 200.4 / 0.02 = 2020both
74LS00 → 74008 / 1.6 = 50.4 / 0.04 = 105low state
7400 → 74LS0016 / 0.4 = 400.4 / 0.02 = 2020high state

The mixed case is the classic exam trap: every standard TTL input pushes 1.6 mA into an LS output that can sink only 8 mA.

Low-state and high-state fan-out limits for four TTL connections Low state IOL/IIL High state IOH/IIH 7400 → 7400: fan-out 101010 74LS00 → 74LS00: fan-out 202020 74LS00 → 7400: fan-out 5510 7400 → 74LS00: fan-out 204020
The shorter bar in each pair is the fan-out. Drawn from the SDLS025D values in the table above.

Current is only half the check. The driver's guaranteed output voltage must also clear the load's thresholds: $V_{OH(\min)} \ge V_{IH}$ and $V_{OL(\max)} \le V_{IL}$. A 74LS00 passes the current test into a 74HC00 easily (0.4 mA / 1 µA = 400), but its VOH(min) of 2.5 V is below the HC input's VIH of 3.15 V, so the link is not guaranteed. That is why the 74HCT00 exists: a CMOS gate with TTL input thresholds (VIH = 2 V).

Why is CMOS fan-out so large, and what actually limits it?

A CMOS input is a transistor gate, so it draws almost no DC current. A 74HC00 output rated at 4 mA divided by 1 µA of input leakage gives a DC fan-out of 4,000. The real limit is capacitance: every input adds up to 10 pF, and the output needs time to charge it.

TI's SN74HC00 datasheet says the part meets all its published specs with up to 50 pF of load and advises not to exceed that. With Ci = 10 pF maximum, that is 5 inputs before you count any PCB trace (16 at the typical 3 pF). TI's datasheet application note says the same: capacitive loads set how long the output takes to switch.

A switching output behaves roughly like a resistor Reff charging the load, so the 50% delay grows linearly with load capacitance:

$$t_{pd} \approx t_0 + 0.69\,R_{eff}\,C_L$$$$C_L = N\,C_{in} + C_{wire}$$

The SN74HC244 buffer datasheet (SCLS130I) specifies the same output at two loads, so you can read the slope straight off it: at 4.5 V and −40 to 85 °C, tpd max is 29 ns at 50 pF and 42 ns at 150 pF. That is 13 ns per 100 pF, or 0.13 ns/pF, which corresponds to Reff ≈ 0.13 ns/pF ÷ 0.69 ≈ 190 Ω. Each extra 10 pF CMOS input costs about 1.3 ns. In CMOS, fan-out is a speed budget.

The same rule holds on-chip with smaller numbers. In SkyWater's open 130 nm library (sky130_fd_sc_hd, typical corner, 25 °C, 1.8 V), the inv_1 input pin is 0.0023 pF and its output max_capacitance is 0.181 pF, so roughly 78 identical inputs would break the library's capacitance limit, and the edge would be uselessly slow well before that.

Why does high fan-in slow down a CMOS gate?

An n-input CMOS NAND puts n NMOS transistors in series in its pull-down; an n-input NOR puts n PMOS transistors in series in its pull-up. Series resistances add, and every node between them has capacitance that must also charge or discharge, so with equal-size transistors the delay grows roughly with n squared.

For a 4-input NAND with equal transistors, the Elmore estimate of the falling delay weights each capacitance by the resistance between it and ground:

$$t_{pHL} = 0.69\,R_n\,(C_1 + 2C_2 + 3C_3 + 4C_L)$$

With every node equal, the weights sum to $1 + 2 + \dots + n = n(n+1)/2$: 3 for a 2-input gate, 10 for 4 inputs, 36 for 8. That quadratic growth is why the UCSB lecture notes adapted from Rabaey's Digital Integrated Circuits state that gates with a fan-in greater than 4 should be avoided. NOR is worse than NAND because its series stack is PMOS, which is weaker per unit width.

Elmore weight n(n+1)/2 of an equal-size series stack for fan-in 1 to 8 fan-in ≤ 4 avoid 11 32 63 104 155 216 287 368 fan-in n (series transistors)
Relative Elmore delay of an unsized series stack, n(n+1)/2, with equal resistance and capacitance at every node.

What is the logical effort of NAND and NOR gates?

Logical effort g measures how much more input capacitance a gate needs than an inverter to deliver the same output current. With PMOS sized twice as wide as NMOS, an n-input NAND has $g = (n+2)/3$ and an n-input NOR has $g = (2n+1)/3$. Parasitic delay p is about n for both.

$$d = g\,h + p$$$$g_{NAND} = \frac{n+2}{3}, \qquad g_{NOR} = \frac{2n+1}{3}$$

Here h = Cout/Cin is the electrical effort (the gate's own fan-out) and d is in units of τ, the delay of an ideal inverter driving an identical one. These are the values tabulated by Sutherland, Sproull and Harris and in Harris's CMOS VLSI Design lectures.

Gaten = 2n = 3n = 4n = 8
NAND g4/35/36/3 = 210/3
NOR g5/37/39/3 = 317/3
Parasitic p2348

Worked example: an 8-input AND with path electrical effort H = 4. Option A is a NAND8 followed by an inverter: $G = 10/3,\ P = 8 + 1 = 9$. Option B is two NAND4 gates feeding a NOR2: $G = 2 \times 5/3 = 10/3,\ P = 4 + 2 = 6$. Both paths have $F = GH = 13.3$ over two stages, so the effort delay is $2\sqrt{13.3} = 7.3\,\tau$ either way. Totals: $D_A = 7.3 + 9 = 16.3\,\tau$, $D_B = 7.3 + 6 = 13.3\,\tau$. The tree built from 4-input gates is about 18% faster.

How do you fix a net with high fan-out?

Split the load across a buffer tree so that no single stage drives too much. Logical effort shows the fastest chain uses stages that each drive about 4 times their own input capacitance, so 256 unit loads are best driven through 4 stages (4, 16, 64, 256), not by one gate.

One unit inverter driving 256 unit loads directly: $d = 256 + 1 = 257\,\tau$. Through $N = \log_4 256 = 4$ stages with $h = 4$ each: $D = 4 \times 4 + 4 \times 1 = 20\,\tau$. Harris's lecture derives the best stage effort as 3.59 when inverter parasitic delay is 1, and recommends 4 in practice.

In synthesis and place-and-route this is automatic. Cell libraries and SDC constraints (set_max_fanout, set_max_capacitance) set max fanout, capacitance and transition limits. OpenROAD's repair_design command inserts buffers to fix max slew, max capacitance and max fanout violations, and when neither the library nor the SDC limits fanout it builds buffer trees at a default of 50 load pins. Clock nets, the largest fan-out nets on a chip, get their own flow in clock tree synthesis.

Fan-in vs fan-out: what is the difference?

Fan-inFan-out
MeaningInputs on one gateGate inputs one output drives
Decided byThe gate's designThe circuit connected to it
Board-level (TTL) limitInputs available on the partDC current: 10 for 7400, 20 for 74LS00
CMOS / on-chip limitSeries-stack delay, about n²Load capacitance and delay
Rule of thumbKeep it at 4 or belowStage effort about 4; tool limits on pins and capacitance
Fix when exceededTree of 2- to 4-input gates; latest-arriving input nearest the outputBuffer tree or an upsized driver

Try it: fan-out and fan-in calculator

Pick a driver and a load from the datasheet table above, or enter your own currents. The second tab shows how logical effort and stack delay grow with fan-in.

Common interview follow-ups

Why can a 74LS00 drive only 5 standard TTL inputs?
In the low state each SN7400 input sources 1.6 mA into the driver, and the LS output can sink only 8 mA. 8 / 1.6 = 5, even though the high-state budget would allow 10.
Is CMOS fan-out infinite?
No. The DC limit runs into the thousands because inputs only leak, but each input adds capacitance. The 74HC00 is rated for 50 pF, which is about 5 worst-case inputs, and every extra picofarad adds delay.
Why are NAND gates preferred over NOR gates in CMOS?
A NOR stacks PMOS transistors in series, and PMOS is weaker. That shows up as higher logical effort: a 4-input NOR has $g = 3$ against $g = 2$ for a 4-input NAND.
What happens if you exceed the TTL fan-out?
The output still switches, but VOL rises and VOH falls past their guaranteed limits, eating the noise margin until a load misreads the level. TI does not guarantee the VOL spec beyond the rated current.

Related questions

Learn logic families and gate-level design hands-on

Skill-Lync's Basics of Digital Electronics course packs 22 hours of content and 2 industry projects. For the full career track, see Skill-Lync's embedded systems courses.

View the course
Master These Concepts with IIT Certification
IIT Certified

Master These Concepts with IIT Certification

175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.

Relevant for Roles

VLSI Design Engineer Digital Designer Synthesis Engineer