Concept explainer · Beginner · 4 min read
AC vs DC
What Is the Difference and Why Electronics Run on DC
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
Direct current (DC) flows one way at a steady voltage, like a battery or USB charger. Alternating current (AC) reverses direction many times a second; Indian mains is 230 V at 50 Hz. Power grids use AC because transformers can step it up for transmission and down for homes. Electronics need DC, so every adapter and charger converts AC to low-voltage DC. Mains AC is dangerous: only switch it with rated relays and enclosed modules.
Key specs at a glance
- DC
- One direction, steady voltage: batteries, USB, solar panels
- AC
- Reverses direction: mains, transformers, generators
- India mains
- 230 V RMS, 50 Hz single phase (about 400 to 415 V three phase)
- Peak of 230 V AC
- About 325 V
- Conversion
- Transformer + rectifier + regulator, or a switch-mode supply (SMPS)
- Meter setting
- V~ (or VAC) for AC, V with a straight line for DC
This part is often wired to 230 V mains. Do all wiring with the plug pulled out, keep mains wires inside a closed box with strain relief, add a fuse, and never touch the board while it is plugged in. If you are new to mains wiring, have an electrician check it before you switch on.
The difference in one table
| DC | AC | |
|---|---|---|
| Direction | Constant | Reverses 100 times a second at 50 Hz |
| Sources | Batteries, solar panels, USB, adapters | Grid, generators, inverters |
| Changing voltage | Needs electronic converters | Transformers do it simply |
| Used by | All electronics, LEDs, motors with drivers | Home wiring, fans, pumps, heaters, transformers |
| Storage | Batteries store DC | Cannot be stored directly |
- Direction
- DC:
- Constant
- AC:
- Reverses 100 times a second at 50 Hz
- Sources
- DC:
- Batteries, solar panels, USB, adapters
- AC:
- Grid, generators, inverters
- Changing voltage
- DC:
- Needs electronic converters
- AC:
- Transformers do it simply
- Used by
- DC:
- All electronics, LEDs, motors with drivers
- AC:
- Home wiring, fans, pumps, heaters, transformers
- Storage
- DC:
- Batteries store DC
- AC:
- Cannot be stored directly
Why the grid uses AC and gadgets use DC
Power lost in a wire is I²R, so sending power at very high voltage and low current wastes much less. Transformers, which only work with AC, make it cheap to step voltage up to hundreds of kilovolts for transmission and down to 230 V for homes. Inside a device, however, chips, LEDs and batteries need a steady voltage in one direction, so the device's power supply converts AC to DC. Modern high-voltage DC links and solar systems are changing this balance, but your wall socket will stay AC.
RMS, peak and frequency
AC voltage is quoted as RMS (root mean square): the DC voltage that would heat a resistor equally. For a sine wave, peak = RMS x 1.414, so 230 V mains peaks at about 325 V and swings between +325 V and -325 V. That is why capacitors on a rectified mains supply need ratings of 400 V or more. Frequency is how many full cycles happen per second: 50 Hz in India, Europe and most of Asia; 60 Hz in North America. Cheap multimeters read RMS correctly only for clean sine waves; a true-RMS meter handles distorted waveforms.
How AC becomes DC
- 1Step down: a transformer (in older linear adapters) or a high-frequency switching stage (in modern SMPS chargers) lowers the voltage and isolates you from the mains.
- 2Rectify: diodes, usually a bridge rectifier, let current through in one direction only, giving bumpy DC.
- 3Smooth: a large electrolytic capacitor fills in the dips.
- 4Regulate: a voltage regulator or the SMPS control loop holds the output at exactly 5 V, 12 V or whatever is needed.
For projects, buy an enclosed, certified SMPS or adapter rather than building a mains supply.
Working safely near mains
- Mains AC can kill. Leave wiring of sockets, switchboards and appliances to a qualified electrician.
- To switch a mains load from a microcontroller, use a relay module or SSR rated for the load, inside a closed enclosure, with mains and low-voltage wiring kept apart.
- Never work on a circuit that is plugged in. Unplugging is safer than switching off.
- Use fuses and an earth connection on metal enclosures.
- Keep breadboards and jumper wires away from mains entirely.
Try it: Ohm's law calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Measuring mains with the meter set to DC volts.
- Using 250 V capacitors after a 230 V rectifier (the peak is 325 V).
- Switching mains with a relay on an open breadboard.
- Assuming a 12 V AC transformer output gives 12 V DC after a rectifier; it gives about 16 V peak minus diode drops.
- Working on a plugged-in appliance.
Frequently asked questions
What is the difference between AC and DC?
DC flows in one direction at a steady voltage; AC reverses direction many times per second. Batteries give DC; wall sockets give AC.
Is Indian mains 220 V or 230 V?
The standard is 230 V at 50 Hz, with an allowed tolerance. Older equipment is often labelled 220 V; both refer to the same supply.
Why do we use AC in homes?
AC voltage is easy to change with transformers, so power can be transmitted at high voltage with low losses and stepped down for homes.
Can a DC motor run on AC?
A permanent-magnet DC motor will not run properly on AC. Universal motors (in mixers and drills) run on both.
Is AC or DC more dangerous?
Both are dangerous at mains voltages. AC at 50 Hz is particularly hazardous because it can disturb the heart's rhythm. Treat any voltage above about 50 V with care.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- Bureau of Indian Standards IS 12360 (voltage bands and frequency)
- IEC 60038 standard voltages
- Basic electrical engineering references on RMS and transmission losses
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



