The Circuit Maker
Basics9 min read

AC vs DC: What's the Difference and Why Does It Matter?

AC (alternating current) reverses direction periodically; DC (direct current) flows in one direction. Learn the differences, how each is used, and why both exist.

·

AC (alternating current) periodically reverses direction; DC (direct current) flows in one direction only. These are the two fundamental types of electric current. Both are essential — AC powers the electrical grid and your home, while DC powers virtually every electronic device you own.

What is DC (direct current)?

Direct current flows in a single, constant direction from the positive terminal of a voltage source to the negative terminal. The voltage remains steady over time (or changes slowly), and the polarity never reverses.

Common DC sources

  • Batteries — AA, AAA, 9V, lithium-ion cells, car batteries
  • Solar panels — generate DC from sunlight
  • USB ports — provide 5V DC
  • Power adapters — convert AC from the wall to DC for your laptop or phone
  • Arduino and microcontrollers — operate on 3.3V or 5V DC

DC is used in almost all electronic circuits. LEDs, transistors, integrated circuits, sensors, and microcontrollers all run on DC. When you connect an LED to an Arduino pin, you're working with DC.

What is AC (alternating current)?

Alternating current continuously reverses direction, following a periodic waveform — most commonly a sine wave. The voltage swings from positive to negative and back many times per second. The number of complete cycles per second is the frequency, measured in hertz (Hz).

AC around the world

RegionVoltageFrequency
North America (US, Canada, Mexico)120V60 Hz
Europe, UK, Australia, most of Asia220–240V50 Hz
Japan100V50 Hz (east) / 60 Hz (west)
Brazil127V or 220V60 Hz

The voltage listed for AC is the RMS (root mean square) value, not the peak value. A 120V RMS supply actually peaks at about 170V. RMS is the equivalent DC voltage that would deliver the same power.

Key differences between AC and DC

PropertyDCAC
Current directionOne direction onlyReverses periodically
WaveformFlat line (steady voltage)Sine wave (or square, triangle)
Frequency0 Hz (constant)50 or 60 Hz (power grid)
Voltage transformationRequires DC-DC converters (complex)Simple with transformers
Transmission efficiencyHigher losses over long distances (historically)Efficient at high voltage over long distances
StorageEasy — batteries store DC directlyCannot be stored directly; must convert to DC first
Safety (same voltage)Generally less dangerous (no "let go" effect at low V)More dangerous — AC causes muscle lock at lower currents
Used byElectronics, batteries, solar, EVsPower grid, motors, appliances, transformers

Why the power grid uses AC

AC won the "war of currents" in the late 1800s for one critical reason: transformers. A transformer can step AC voltage up or down with very high efficiency — no moving parts, minimal energy loss.

This matters because of power transmission. The power lost in transmission lines is proportional to the square of the current: P_loss = I² × R. By stepping voltage up (and current down proportionally), the same power can be transmitted with dramatically less loss:

  • A power plant generates electricity at ~20,000V
  • Transformers step it up to 110,000–765,000V for long-distance transmission
  • Substation transformers step it down to 7,200V for local distribution
  • Pole or pad-mounted transformers step it down to 120V/240V for homes

Without easy voltage transformation, long-distance power delivery would require either impossibly thick cables or would waste most of the energy as heat.

Why electronics use DC

Nearly every electronic component requires a stable, unidirectional voltage to operate:

  • Semiconductors are polarity-sensitive. Transistors, diodes, LEDs, and ICs have positive and negative terminals. Reversing polarity can damage them. DC provides a constant, predictable polarity.
  • Digital logic requires defined voltage levels. A microcontroller interprets 0V as logic LOW and 3.3V or 5V as logic HIGH. AC voltage continuously swings between values and would be meaningless to digital logic without conversion.
  • Batteries produce DC. Portable devices run on batteries, which are inherently DC sources.

When you plug a phone charger into a wall outlet, the charger converts AC to DC internally. Your phone never sees AC.

Converting between AC and DC

AC to DC: Rectification

A rectifier converts AC to DC. The simplest rectifier is a single diode, which blocks the negative half of the AC waveform (half-wave rectification). A bridge rectifier (four diodes) flips the negative half to positive (full-wave rectification), producing smoother output. A capacitor then filters the pulsating DC into a steady voltage.

Every wall-plug power supply, USB charger, and laptop adapter contains a rectifier circuit. Modern "switching" power supplies are smaller and more efficient than older "linear" designs.

DC to AC: Inversion

An inverter converts DC to AC. Inverters are used in:

  • Solar power systems — solar panels produce DC; an inverter feeds AC into the grid or powers AC appliances
  • UPS (uninterruptible power supply) — converts battery DC to AC during outages
  • Electric vehicles — the battery is DC; the drive motor may need AC
  • Portable power stations — battery DC to AC for running appliances off-grid

DC to DC: Voltage regulation

DC-DC converters change one DC voltage to another. A buck converter steps voltage down (e.g., 12V to 5V); a boost converter steps it up (e.g., 3.7V to 5V). Your Arduino's onboard regulator converts the input voltage (7–12V) to the 5V and 3.3V rails the microcontroller needs.

AC and DC in Ohm's Law

Ohm's Law (V = I × R) works directly for DC circuits and for purely resistive AC circuits. When AC circuits include capacitors or inductors, resistance is replaced by impedance (Z), which accounts for the frequency-dependent opposition these components add. For beginners working with DC circuits (batteries, Arduino, LEDs), standard Ohm's Law applies without modification.

The history: Edison vs Tesla

In the 1880s, Thomas Edison championed DC for electrical distribution, while Nikola Tesla and George Westinghouse advocated for AC. This rivalry is known as the "War of Currents."

Edison's DC system worked well for short distances but couldn't efficiently transmit power more than a mile or two from the generating station. Tesla's AC system, combined with Westinghouse's transformers, could transmit power hundreds of miles. AC won, and by the early 1900s, nearly all power grids were AC.

Ironically, modern technology has partially vindicated DC. High-voltage DC (HVDC) transmission lines are now used for very long distances and undersea cables, where they're actually more efficient than AC. And of course, the DC electronics revolution means that most of the electricity delivered as AC is immediately converted back to DC inside our devices.

Quick reference: common voltages

SourceVoltageTypeUse
AA battery1.5VDCRemote controls, toys
Li-ion cell3.7VDCPhones, laptops, power banks
USB5VDCCharging, Arduino, peripherals
Car battery12VDCAutomotive electronics
US outlet120VACHousehold appliances
EU outlet230VACHousehold appliances
Dryer/oven (US)240VACHigh-power appliances
Industrial (US)480VACFactory equipment

Common mistakes

  • Assuming AC voltage is the peak value. The 120V or 230V rating is RMS, not peak. Peak voltage is about 41% higher (120V RMS ≈ 170V peak).
  • Using DC formulas for AC circuits with capacitors/inductors. Capacitors and inductors have frequency-dependent impedance. In DC, a capacitor is an open circuit and an inductor is a short circuit — but in AC, they pass or block signals depending on frequency.
  • Forgetting polarity when wiring DC. Connecting a DC source backwards can damage LEDs, ICs, and other polarity-sensitive components. Always check polarity before powering a circuit.
  • Thinking AC is always more dangerous than DC. At the same voltage and current, AC is typically more dangerous because it causes muscle tetany ("can't let go"). But DC at high voltage is also extremely dangerous — arc flash from DC doesn't self-extinguish like AC arcs do.

Summary

DC flows in one direction at a steady voltage; AC reverses direction periodically, typically as a sine wave. The power grid uses AC because transformers make it efficient to transmit over long distances. Electronics use DC because semiconductors need stable, unidirectional power. Rectifiers convert AC to DC; inverters convert DC to AC; DC-DC converters change DC voltage levels. Both types of current follow Ohm's Law in resistive circuits. Understanding AC and DC is fundamental to working with any electrical system.