How AC Adapters and Chargers Work: From Wall Outlet to 5 V

15 min read · Updated: October 23, 2026

An AC adapter, or charger, turns the AC from a wall outlet into DC of around 5 volts for phones and other devices. This article uses Japan's 100-volt outlets as its example. Most adapters today are "switching power supplies." They first turn the AC into DC. Then they switch it on and off tens of thousands of times a second or more, and a small transformer lowers the voltage. The faster the switching, the smaller the transformer can be. That is why chargers are now much smaller and lighter than the heavy boxes of the past.

What you'll learn

  • Why phones and computers need "low-voltage DC"
  • How the heavy adapters of the past differ from today's small chargers
  • The five stages inside a charger (rectifying, fast on/off switching, a small transformer, rectifying again, and monitoring and adjusting)
  • Why faster switching makes parts smaller, and the extra heat it brings
  • What "isolation" means: no wire connects the outlet side to the output side

Prerequisites: a rough idea of how DC and AC differ ("AC vs DC Explained"). It also helps to know that a transformer is "a part that raises or lowers an AC voltage with two coils."

In everyday life: from heavy boxes to palm-sized chargers

Phone chargers, laptop power supplies, and the power adapters for Wi-Fi routers and game consoles. A home is full of small boxes that plug into the wall. Each one turns the electricity from the outlet into a form that suits the device.

Not long ago, the adapter that came with a home appliance was a heavy, square box. A modern phone charger can deliver about the same power from a much smaller and lighter box. That is because the way it works inside has changed completely.

In this article, we look at what happens inside a modern charger, in five stages.

Why devices need low-voltage DC

The electricity from an outlet is AC. Its direction swings back and forth 50 or 60 times a second. On 100-volt mains, the voltage reaches about 141 volts at each peak (see "AC vs DC Explained" for details). The circuits inside phones and computers, however, run on DC, which flows in one constant direction.

They also need much lower voltages. A phone's lithium-ion battery is about 3.6 volts per unit, or "cell" (Battery University). In DDR5, a standard for computer memory, the supply voltage is 1.1 volts (JEDEC, 2020). The tiny transistors inside chips cannot withstand high voltages.

So the AC adapter comes first. It turns the 100-volt AC into DC, usually somewhere around 5 to 20 volts. Inside the device, smaller power circuits then split this into the exact voltage each chip needs ("What Chips Are Inside a Smartphone?"). The AC adapter handles the first and biggest step on this long path.

Old adapters: a big transformer lowers the voltage directly

Old adapters were very simple inside. The AC from the outlet went straight into a transformer, which lowered the voltage. Next, diodes, which let current flow in only one direction, lined up its direction. A capacitor then smoothed it into DC ("What Is a Diode?").

The weight came from this transformer. Handling a slow change of 50 or 60 times a second takes a thick iron core and many turns of copper wire. The core is made of many thin iron sheets stacked together (the OpenStax physics textbook).

This design had other weak points too. The output voltage is set by the ratio of the coils' turns. So in a country where the outlet voltage is twice as high, the output is nearly twice as high too. Using the adapter there as-is could damage the device. When the connected device drew little power, the voltage could also be higher than the label said. For example, one transformer-based product is labeled 9 volts AC. With nothing connected, its output can rise to nearly 11.6 volts (Triad Magnetics).

It also wasted a lot of energy. In a document from the U.S. ENERGY STAR program, transformer-based power supplies measured 20–75% efficiency. Efficiency is the share of the power taken in that gets delivered. The rest became heat and warmed the box.

How it works 1: The overall flow inside a modern charger

Most chargers today use a method called a switching power supply. The name comes from the way it rapidly "switches" the electricity on and off. Electricity passes through the stages in the order shown below.

The order in which electricity passes through a switching AC adapter. AC is first turned into DC, switched on and off fast, lowered by a small transformer and turned into DC againWall outlet① Rectify and smoothDiodes, capacitor② Fast on/offPower transistor③ Small transformerLowers the voltage④ Rectify and smoothDiodes, etc.USB output100 V AC≈140 V DC10,000s oftimes/second↑ Outlet side↓ Output side≈5 V DC
Figure 1. Of the colored boxes, the top three are on the outlet side and the bottom two are on the output side. The transformer, drawn as an outline only, straddles the border. The dashed line is the border between the two sides; no wire crosses it. On the right are rough shapes of the voltage at each stage; the heights are not to scale. Left out: the part that monitors and adjusts the output (Figure 2), parts that suppress electrical noise, and protection circuits.

At first glance, this looks like a detour. The AC is turned into DC on purpose, then chopped up again and sent through a transformer. But this detour is what lets the transformer fit in the palm of your hand. Let's go through it step by step.

How it works 2: First, turn it into DC and store it at high voltage

In the first stage, a circuit of four diodes makes the outlet's AC flow in one direction. This is called rectification. Then a large capacitor stores charge and releases it bit by bit, smoothing out the ripples.

The voltage has not been lowered yet. A 100-volt outlet gives about 140 volts of DC, close to the height of the peaks (ROHM). In a 240-volt country, it is about 340 volts (our own calculation).

This capacitor must withstand high voltage (ROHM). Its job is to carry the circuit through the troughs in the outlet's wave, which come 100 or 120 times a second. Its size is based on how long these troughs last and on times when the outlet voltage runs low (a document from TI, a U.S. company). It has nothing to do with the switching speed. So the "faster switching" trick we will see later does not make it smaller.

How it works 3: A power transistor switches on and off fast

Next, the DC is chopped finely by a switch that is controlled by an electrical signal. The switch is a transistor built to handle large currents and high voltages. It can switch between passing and blocking current tens of thousands of times a second ("What Is a Power Semiconductor?").

The switching speed varies by product. One example is about 50,000 times a second, or 50 kilohertz (ROHM). That is fast enough to switch on and off a thousand times during one cycle of 50-hertz AC from the outlet.

The chopping is needed because a transformer works only with "changing current." Steady DC produces no voltage on the other side. Switching on and off over and over looks, to the transformer, just like very fast AC.

How it works 4: A small transformer lowers the voltage, and it becomes DC again

The chopped electricity passes through a small transformer, which lowers the voltage. Small chargers often use a method that stores energy in the transformer as magnetism while the switch is on. Then, while the switch is off, that energy goes to the output side. This is called the flyback method. It is widely used in power supplies up to about 100 watts (ROHM).

What comes out on the output side still pulses in step with the switching. So it is rectified again here and smoothed with a capacitor. Only then do you get steady DC, such as 5 volts.

The rectifying part here uses a clever trick. A diode uses up a little voltage every time current passes through it. Even a Schottky diode, which uses less, takes about 0.4–0.7 volts (Toshiba). Losing 0.5 volts while making 5 volts is a 10% loss on its own.

So today's chargers widely use a transistor in place of the diode (Monolithic Power Systems). It is switched on only at the moments when current should flow. This is called synchronous rectification.

How it works 5: Watch the output and correct the on-time

When a phone suddenly draws more power, the output voltage drops a little. The outlet voltage also varies. The charger still holds 5 volts because it watches the output all the time and corrects any drift.

How the charger watches the output voltage, reports any difference with light, and corrects how long the switch stays on. The outlet side and the output side are not connected by any wireOutlet sideOutput sideSwitchTransformerBack to DCOutput 5 VMonitorCompares to targetLED lights upGap → brightnessReceives lightIn the optocouplerLightControl chipAdjusts on-timeNo wire crosses the line
Figure 2. A simplified view of a charger that uses an optocoupler. Left out: designs that wind an extra coil on the transformer to estimate the output, the chip that handles USB PD negotiation, and how the control chip gets its own power.

On the output side, a part compares the present output voltage with a fixed reference voltage (TI). If they differ, it reports by how much to the control chip on the outlet side. The chip then changes the fraction of time the switch stays on, which raises or lowers the power sent. This fraction is called the duty cycle.

A system that looks at the result and corrects its action is called feedback. Feedback is also why the output stays the same whether the input is 100 volts or 240 volts.

Under USB PD, a fast-charging standard, a device may ask for 9 volts or 20 volts. A chip on the output side then changes the target voltage. Some products send this instruction to the outlet side through the same optocoupler shown in the figure (Renesas product material; "What Is USB?").

Why faster switching makes parts smaller

In a transformer, one coil creates a magnetic field inside the core, measured as magnetic flux. Changes in that flux create a voltage in the other coil. There is a limit to how much flux the core can hold, set by the core's material and thickness. Beyond that limit, the transformer stops working well.

At the same voltage, the shorter the time the voltage is applied, the less flux builds up in the core. With 50-hertz AC, each half-cycle lasts 1/100 of a second before the direction flips. With 50,000 switches a second, each on-period lasts about 1/50,000 of a second at most. If less flux builds up, the core can be thinner and the coils can have fewer turns (a power electronics textbook by Erickson and others).

But switching a thousand times faster does not make the transformer a thousand times smaller. With fast changes, more energy is lost as heat in the core and wires. So the core material also changes, from iron sheets to ferrite, which loses less even at high frequencies. Ferrite is made mainly of iron oxide, fired until it is hard. "What Is GaN (Gallium Nitride)?" explains this with a different analogy.

Efficiency and heat: the trade-off with speed

Today's chargers are much more efficient than old ones. Say a charger with 90% efficiency delivers 20 watts. It takes in about 22.2 watts, and about 2.2 watts becomes heat (our own calculation).

The heat comes from four main sources. They are the small resistance of the transistor while it is on, the rectification on the output side, the transformer's core and wires, and losses during switching. The last one arises in the brief instant when the switch flips between on and off, when voltage and current are both present. This is called switching loss.

Here is the trade-off. Faster switching makes parts smaller, but each switch adds switching loss, so the heat goes up. A small box also has little surface area, so it sheds heat poorly. Chargers can get smaller only when there are parts that "switch fast without adding much heat."

There are also rules for the power a charger uses with nothing connected (as of 2026). In the EU, since April 2020, external power supplies of 49 watts or less that turn AC into DC must use 0.10 watts or less (EU Regulation 2019/1782). In the U.S., since 2016, the limit is 0.100 watts for a similar range (U.S. Department of Energy). In the EU, a new and stricter regulation will replace this rule from December 2028 (EU Regulation 2025/2052).

Why GaN chargers got smaller

More and more small chargers now use transistors made of a material called GaN (gallium nitride) for the switch. A GaN transistor loses less electricity per switch than a silicon one. So it can switch faster without adding much heat, and the transformer and the output-side capacitors can be smaller.

But only the parts whose size depends on the switching speed get smaller. The large input capacitor from How it works 2 is matched to the outlet's wave, so it barely shrinks. Better control chips and tighter packing of parts also helped bring chargers to their current size.

Isolation for safety: no wire connects the two sides

Look above and below the dashed line in Figure 1. The outlet side carries electricity at 100 volts or more. On the output side, people's fingers touch the USB connector directly. So the two sides are built with no wire between them. Separating parts with a material that does not conduct electricity, or with a gap, is called isolation.

Then how does energy get across? Power crosses as magnetic flux in the transformer's core. The two coils are not connected electrically. The monitor's information is often sent across as light (Figure 2). Some designs instead wind an extra coil on the transformer and estimate the output voltage from it (ROHM).

A part that sends signals with light is called an optocoupler. An LED at its input lights up, and a part at its output receives the light and turns it back into an electrical signal. The input and output are electrically separate. So signals can pass even when the voltages on the two sides are very different (Toshiba).

Rules for this kind of isolation are set in international safety standards. For computers, AV equipment and their power supplies, a standard called IEC 62368-1 is used (COSEL).

Charger labels often show a mark of two squares, one inside the other. This symbol stands for "Class II" equipment, which is protected by double insulation or a similar method (IEC 60417-5172).

In Japan, AC adapters are "specified electrical appliances" under national rules, a category with especially strict safety checks. They must show the diamond-shaped PSE mark (Ministry of Economy, Trade and Industry). In Japan, avoid products without this mark. And never take a charger apart. The large capacitor inside can hold a high voltage for a while, even after you unplug it.

Common myths

Myth: A charger left plugged in uses no electricity at all

In fact, even with nothing connected, the monitoring circuit and other parts use a tiny amount of electricity. The amount is small: the EU and U.S. limit is 0.1 watts (as of 2026, for 49 watts or less). Using 0.1 watts for a whole year adds up to about 0.9 kilowatt-hours (our own calculation). Some old transformer-based adapters got warm even with nothing connected. That is because current was always flowing through their transformer.

Myth: A high-wattage charger always uses a lot of electricity

In fact, a charger's wattage is "the most it can deliver." Through feedback, it sends only what the device uses, so a small device draws little power. A charger's wattage is not directly tied to your electricity bill. The number is printed large on the box, so people tend to think the charger always uses that much.

Myth: A warm charger is a sign that it is broken

In fact, even at over 90% efficiency, the rest turns into heat. About 2 watts of heat while delivering 20 watts is what the design expects. But if it is too hot to touch, smells burnt or has changed shape, unplug it from the outlet and stop using it.

By the numbers

ItemNumberNote
DC from rectifying 100 voltsAbout 140 VAbout 340 V from 240 volts
Example switching speed50,000 times a second (50 kHz)1,000 times the outlet's AC (ROHM)
Voltage used by a Schottky diode0.4–0.7 VUp to about 10% of a 5 V output (Toshiba)
Efficiency of old transformer-based supplies20–75%ENERGY STAR measurements
Heat when delivering 20 W at 90% efficiencyAbout 2.2 WOur own calculation
Limit on power with nothing connected0.10 W49 W or less; EU from 2020, U.S. from 2016 (as of 2026)

At 50,000 switches a second, one on/off cycle lasts 1/50,000 of a second (20 microseconds). In each of these short intervals, the transformer takes in energy and passes it on to the output side.

Learn more

Read next

Articles in the series “Chips in everyday life”

  1. Memory vs Storage: What's the Difference? (RAM vs SSD)
  2. What Chips Are Inside a Smartphone? The Main Chips Explained
  3. What Is a Power Semiconductor? SiC, GaN and IGBTs Explained
  4. How Do Image Sensors Work? Inside a Phone Camera Sensor
  5. What Is a Microcontroller? Tiny Computers in Everyday Things
  6. How Do Solar Cells Work? Light to Electricity and Its Limits
  7. How Do LEDs Work? Turning Electricity Into Light in a Chip
  8. How Do Touchscreens Work? Capacitive Touch Explained
  9. How Do SSDs Work? Inside NAND Flash Memory, Explained
  10. What Is an Analog Chip? Analog vs Digital ICs Explained
  11. How Does GPS Work? Satellites, Timing and Your Phone
  12. LCD vs OLED: How Phone and TV Screens Make Color
  13. How DRAM Works: Cells, Refresh and Sense Amplifiers
  14. What Is MEMS? How Accelerometers and Gyroscopes Work
  15. How Lithium-Ion Batteries Work: Charging, Aging and Safety
  16. What Is a Laser Diode? How It Differs From an LED
  17. What Is GaN (Gallium Nitride)? Why GaN Chargers Are Small
  18. What Is Silicon Carbide (SiC)? Why EV Inverters Use It
  19. How Wireless Charging Works: Induction, Qi and Qi2
  20. What Is an Inverter? DC to AC for Air Conditioners and EVs
  21. What Is USB? USB-C vs USB 3, USB4 and Power Delivery
  22. How Noise Cancelling Works: Using Sound to Erase Sound
  23. How Are Chips Cooled? Heat Sinks, Heat Pipes and Limits
  24. How AC Adapters and Chargers Work: From Wall Outlet to 5 V
  25. What Chips Are Inside an Electric Car? EV Chips Explained
  26. How Do Smartwatches Measure Heart Rate? Reading Blood Flow
  27. How Power Banks Work: How Many Charges From 10,000 mAh?
  28. What Is NFC? How Contactless Cards and Tap to Pay Work

Questions on this topic: Power Electronics Circuits

Sources

All explainers