Circuit Theory

Why Electronics Run on DC (and Why the Grid Uses AC)

Why electronics run on DC while the power grid uses AC: batteries, transformers, transmission losses and how devices convert mains power to DC.

On this page
  1. Short answer
  2. What electronics need
  3. What the grid needs
  4. How the wall adapter makes DC
  5. Is AC or DC more dangerous?
  6. Common mistakes

Short answer

Electronic circuits run on DC because chips, transistors and sensors need a steady voltage with a fixed polarity, and batteries supply DC. The power grid runs on AC because transformers can change AC voltage efficiently. Higher transmission voltage means lower current, and lower current means lower losses in the wires. Devices then convert the AC from the wall back to DC.

What electronics need

  • A fixed polarity. Transistors and integrated circuits are designed around a supply rail, such as 3.3 V or 5 V, with a fixed positive and negative terminal.
  • A steady voltage. Logic and analog circuits work best when the supply has little ripple.
  • Batteries. Portable devices run from cells, and cells produce DC.

A DC source gives a constant polarity, which is what these circuits are built around.

What the grid needs

Power in a line is P = V × I. For a fixed amount of power, a higher voltage means a lower current. The power lost in the wires is I² × R. With the same wire, ten times the voltage means one-tenth of the current and one-hundredth of the loss.

Transformers make this practical. An AC transformer can step voltage up for transmission and back down for homes. Only AC can be transformed this way, because a transformer needs a changing magnetic field to work.

Changing DC voltage levels efficiently was hard for much of the history of power grids. That is one reason AC became the standard for transmission and distribution.

Today, high-voltage DC (HVDC) is used on some long-distance and undersea links. It needs converter stations at each end, which are expensive but efficient for long distances. For the US mains specifics, see Is US voltage AC or DC?.

How the wall adapter makes DC

A phone charger or a TV’s internal power supply usually does four jobs:

  1. Transformer. Steps the mains voltage down to a lower AC voltage. Many modern adapters use a small high-frequency transformer in a switch-mode design.
  2. Rectifier. Usually four diodes in a bridge. It lets current pass in one direction only, which turns AC into pulsating DC.
  3. Filter. Capacitors smooth out the pulses.
  4. Regulator. Holds the output at the target voltage, even when the input or load changes. Linear regulators are simple but waste power as heat. Switch-mode regulators are more efficient.

Switch-mode supplies are common in chargers and computers because they waste less energy as heat.

Is AC or DC more dangerous?

Many pages online rank AC and DC by danger. The honest answer is that the hazard depends on voltage, the current that passes through the body, the path it takes, and how long it lasts. There is no simple ranking to rely on. Treat both as dangerous, and do not work on mains-powered equipment without training.

Common mistakes

  • Thinking AC is bad for electronics. The AC-to-DC conversion inside each device is what electronics need. The AC itself is fine for transmission.
  • Assuming a DC supply is safe at any voltage. Low-voltage DC from a battery is generally low-risk, but high-voltage DC is not.
  • Ignoring the regulator. A rectifier and capacitor alone give a rippling voltage. Most electronics need a regulator too.

For the basics of sources and circuits, see Circuit Analysis Basics.

The complete guide to circuit theory

Circuit Analysis Basics: Voltage, Current and Sources
Read the guide

Keep exploring

Guides from other topics

All topics →