Established 2026  ·  Free Educational Resources for All

Science · Physics

Electricity and Magnetism: The Basics

From charge and circuits to magnets, motors and generators: the ideas that connect electricity and magnetism, explained step by step with diagrams and worked examples.

EDUSAMBAM Editorial Team | 21 min read | Science | Last updated: October 2026
🔊 LISTEN TO THIS ARTICLE
SAVE YOUR EYES • IMPROVE YOUR LISTENING
Listen to the article instead of relying only on continuous screen reading.
Ready to read the article.

In 1820 the Danish physicist Hans Christian Oersted noticed that a compass needle moved when it was placed near a wire carrying an electric current. He published his findings on 21 July 1820. Until then, electricity and magnetism had been studied as two separate subjects. Within about a decade, Michael Faraday showed the link works in both directions: electric currents make magnetic fields, and changing magnetic fields can make electric currents. Almost every motor, generator and transformer you will ever meet is built on those two ideas.

In this article
  1. Electric charge
  2. Current, voltage and resistance
  3. Ohm's law and what changes resistance
  4. Series and parallel circuits
  5. Electrical power and energy
  6. Mains electricity and safety
  7. Magnets and magnetic fields
  8. Currents make magnetic fields
  9. The force on a current: the motor effect
  10. Electromagnetic induction
  11. Transformers and power lines
  12. Common mistakes
  13. A short timeline
  14. Check your understanding
What you will be able to do

1.Electric Charge: Where It All Starts

Everything around you is made of atoms. An atom has a nucleus containing protons (positive charge) and neutrons (no charge), surrounded by electrons (negative charge). The size of the charge on one electron is called the elementary charge, written e. Its value is exactly 1.602 176 634 × 10⁻¹⁹ coulombs (C) in the modern SI system. The coulomb is the unit of electric charge.

Two simple rules describe how charges behave: like charges repel, and unlike charges attract. A neutral object has equal amounts of positive and negative charge, so the effects cancel.

When you rub a plastic ruler with a cloth, electrons move from one material to the other. The material that gains electrons becomes negatively charged and the one that loses them becomes positively charged. Only electrons move; the protons stay fixed inside nuclei. This is static electricity. It explains why a rubbed balloon can pick up small pieces of paper, and it is also the basis of lightning, which is a very large electrical discharge between clouds and the ground.

Materials fall broadly into two groups. In a conductor such as copper or aluminium, some electrons are free to move through the material. In an insulator such as plastic, rubber or dry wood, almost all electrons stay bound to their atoms. Metals conduct well; salt solutions also conduct because they contain moving ions.

2.Current, Voltage and Resistance

An electric current is a flow of charge. It is defined as the charge passing a point each second:

Formula

I = Q ÷ t   (current in amperes, charge in coulombs, time in seconds)

One ampere (1 A) means one coulomb of charge passes each second.

In metals the moving charges are electrons. By an old convention, started before electrons were discovered, the arrow of conventional current is drawn from the positive terminal of a cell, round the circuit, to the negative terminal. Electrons actually move the opposite way. Circuit diagrams and exam answers use conventional current unless told otherwise.

Charges do not move unless something pushes them. The "push" supplied by a cell or battery is measured as voltage, also called potential difference. One volt (1 V) means one joule of energy is transferred for each coulomb of charge: V = W ÷ Q. A 1.5 V cell gives 1.5 J to every coulomb that passes through it, and the lamp or resistor later transfers that energy as heat and light.

Resistance measures how strongly a component opposes the current. It is defined by R = V ÷ I and measured in ohms (Ω).

A simple circuit with a cell, lamp, ammeter and voltmeter A rectangular circuit. A cell on the left drives conventional current upward, across the top through a lamp, down the right side and back along the bottom through an ammeter. A voltmeter is connected across the lamp. Moving gold dots show the direction of conventional current. +− cell lamp A ammeter (in series) V voltmeter (in parallel) conventionalcurrent ↓
Figure 1. A simple circuit. The moving gold dots show conventional current leaving the positive terminal. The ammeter is placed in the circuit so the current passes through it; the voltmeter is connected across the lamp. (Original EDUSAMBAM diagram.)
QuantitySymbolUnitMeasured withConnected
ChargeQcoulomb (C)——
CurrentIampere (A)ammeterin series
Voltage (p.d.)Vvolt (V)voltmeterin parallel
ResistanceRohm (Ω)calculated from V and I—

A useful picture is water in a closed pipe loop with a pump. The pump plays the role of the cell, the flow of water is the current, and a narrow section of pipe resembles resistance. Like every analogy, it has limits, but it helps you see why the current is the same all the way round a single loop.

A common question is why a lamp lights almost at once when you press a switch, even though the electrons themselves drift very slowly (often well under a millimetre per second in ordinary wires). The reason is that the whole circuit is already full of free electrons. When the switch closes, an electric field spreads through the wire very quickly and all the electrons start moving together.

3.Ohm's Law and What Changes Resistance

For many conductors at constant temperature, the current is directly proportional to the voltage across them. This is Ohm's law, and it is usually written V = I × R. A graph of current against voltage for such a component is a straight line through the origin; these are called ohmic conductors. A filament lamp is not ohmic: as it heats up, its resistance rises, so its graph curves. A diode lets current pass in one direction only.

Worked example 1: using V = IR

A lamp has 12 V across it and carries a current of 0.50 A. Find its resistance.

Step 1. Write the formula: R = V ÷ I.

Step 2. Substitute: R = 12 V ÷ 0.50 A.

Step 3. Calculate: R = 24 Ω.

The resistance of a wire depends on four things: its length (longer means more resistance), its cross-sectional area (thicker means less resistance), its material, and its temperature (for most metals, hotter means more resistance). For a uniform wire these first three factors are combined in one equation:

Formula

R = ρ × L ÷ A

ρ (rho) is the resistivity of the material in ohm-metres (Ω·m), L is length in metres, and A is cross-sectional area in square metres.

Worked example 2: resistance of a copper wire

Find the resistance of 2.0 m of copper wire with a cross-sectional area of 1.0 mm². Take the resistivity of copper as about 1.7 × 10⁻⁸ Ω·m.

Step 1. Convert the area to square metres: 1.0 mm² = 1.0 × 10⁻⁶ m².

Step 2. Substitute: R = (1.7 × 10⁻⁸ Ω·m × 2.0 m) ÷ (1.0 × 10⁻⁶ m²).

Step 3. Calculate: R ≈ 0.034 Ω.

This tiny value is why copper is used for connecting wires: it wastes very little energy as heat.

4.Series and Parallel Circuits

Components can be joined in two basic ways. In a series circuit they are in one loop, one after another. In a parallel circuit the current has more than one path to follow, and each path is called a branch.

Series and parallel resistor circuits Left: two resistors one after the other in a single loop with a cell. Right: two resistors in separate branches connected to the same cell. SERIES PARALLEL R₁R₂R₁R₂ one path: same currentbranches: same voltage cellcell
Figure 2. Left: two resistors in series, so one current passes through both. Right: two resistors in parallel, so the current splits between the branches. (Original EDUSAMBAM diagram; the cell is at the left of each circuit.)
SeriesParallel
CurrentSame everywhereSplits between branches; branch currents add to the total
VoltageShared: the voltages across the components add up to the supply voltageSame across every branch
Total resistanceR = R₁ + R₂ + …1/R = 1/R₁ + 1/R₂ + … (always less than the smallest branch)
If one component breaksThe whole circuit stopsOther branches keep working
Worked example 3: series

Resistors of 4 Ω and 6 Ω are in series with a 12 V supply. Find the current and the voltage across each resistor.

Step 1. Total resistance: R = 4 Ω + 6 Ω = 10 Ω.

Step 2. Current: I = V ÷ R = 12 V ÷ 10 Ω = 1.2 A (the same through both).

Step 3. Voltage across 4 Ω: V = IR = 1.2 A × 4 Ω = 4.8 V. Across 6 Ω: 1.2 A × 6 Ω = 7.2 V.

Check: 4.8 V + 7.2 V = 12 V ✓

Worked example 4: parallel

Resistors of 6 Ω and 3 Ω are in parallel across a 12 V supply. Find the total resistance and the total current.

Step 1. 1/R = 1/6 + 1/3 = 1/6 + 2/6 = 3/6, so R = 2 Ω.

Step 2. Branch currents: 12 ÷ 6 = 2 A and 12 ÷ 3 = 4 A.

Step 3. Total current = 2 A + 4 A = 6 A. Check with the total resistance: 12 V ÷ 2 Ω = 6 A ✓

Houses are wired in parallel so that each appliance receives the full supply voltage and can be switched on or off independently.

5.Electrical Power and Energy

Power is the rate of transferring energy. Its unit is the watt (W), which equals one joule per second. For an electrical appliance:

Formulae

P = V × I  and, using V = IR,  P = I²R = V² ÷ R

E = P × t (energy in joules when power is in watts and time in seconds)

Electricity bills use a bigger unit, the kilowatt-hour (kWh), often called a "unit". One kilowatt-hour is the energy used by a 1 kW appliance running for one hour: 1 kWh = 1000 W × 3600 s = 3.6 × 10⁶ J.

Worked example 5: a heater

A 2.0 kW heater runs on a 230 V supply for 3 hours. Find (a) the current, (b) its resistance, (c) the energy used in kWh and (d) the cost if one unit costs 50 (an assumed price in local currency).

(a) I = P ÷ V = 2000 W ÷ 230 V ≈ 8.7 A.

(b) R = V ÷ I = 230 V ÷ 8.7 A ≈ 26 Ω (or V² ÷ P = 52 900 ÷ 2000 ≈ 26 Ω).

(c) E = 2.0 kW × 3 h = 6.0 kWh.

(d) Cost = 6.0 × 50 = 300 (assumed currency units).

6.Mains Electricity and Safety

Mains electricity is alternating current (a.c.): the current reverses direction many times a second. Different countries use different standards. Many countries, including Pakistan and the United Kingdom, supply about 230 V at 50 Hz, while the United States uses about 120 V at 60 Hz. Always check your local rules; this article uses 230 V in its examples.

A standard three-pin plug has a live wire (carries the high voltage), a neutral wire (completes the circuit) and an earth wire (a safety connection to the ground). In the colour code used in the UK and many other places these are brown, blue and green-and-yellow respectively, but colour codes vary, so never rely on colour alone.

Safety reminder

Water lowers the resistance of your skin and makes electric shock much more dangerous. Never touch switches, plugs or sockets with wet hands, never push objects into sockets, and have damaged cables replaced by a qualified electrician. This is general education, not a repair guide.

7.Magnets and Magnetic Fields

A magnet has two ends called poles: a north-seeking pole (N) and a south-seeking pole (S). Like poles repel and unlike poles attract. The only common materials strongly attracted to magnets are iron, steel, nickel and cobalt. These are called magnetic materials. Aluminium, copper, plastic and wood are not attracted. Steel keeps its magnetism (it is "hard") and is used for permanent magnets, while soft iron is easily magnetised and demagnetised, which makes it ideal for electromagnets.

The region around a magnet where a magnetic force acts is its magnetic field. We draw it with field lines. By agreement, the lines point away from the north pole and towards the south pole, and the closer together the lines are, the stronger the field. A small compass placed in the field lines up along the line, with its needle pointing in the field direction.

Magnetic field lines around a bar magnet A horizontal bar magnet with its north pole on the right and south pole on the left. Curved field lines leave the north pole and loop around to enter the south pole. Lines are closest together near the poles. SN field linesend here field linesstart here
Figure 3. Field lines of a bar magnet. They leave the north pole, curve round, and enter the south pole. The lines are crowded near the poles, where the field is strongest. (Original EDUSAMBAM diagram.)

The Earth itself behaves like a huge bar magnet. A compass needle points roughly north because the north-seeking end of the needle is attracted to the Earth's magnetic pole in the northern hemisphere. In magnet terms that pole is actually a magnetic south pole, which is why it attracts the needle's north-seeking end. The magnetic poles are not fixed at the geographic poles and they slowly move over time.

8.Currents Make Magnetic Fields

This is Oersted's discovery. Any wire carrying a current is surrounded by a magnetic field. Around a straight wire, the field lines are circles centred on the wire. A convenient memory aid is the right-hand grip rule: point your right thumb along the conventional current and your curled fingers show the direction of the field.

Winding the wire into a coil called a solenoid adds the fields of every turn together. The field outside a solenoid looks just like that of a bar magnet, while inside it is strong and almost uniform. To find the north end, curl the fingers of your right hand in the direction of the conventional current round the coil; your thumb points towards the north end.

A solenoid electromagnet and its field A coil of wire wound around an iron core. Field lines run through the coil from left to right and return outside the coil, so the right end acts as a north pole and the left end as a south pole. SN soft-iron core, coil, and a cell or battery (not shown) drive the current
Figure 4. A solenoid with a soft-iron core is an electromagnet. The gold ring pulses at the north end to show where the field is strongest. (Original EDUSAMBAM diagram.)

The strength of an electromagnet increases with more current, more turns of wire and by adding a soft-iron core. Unlike a permanent magnet, an electromagnet can be switched on and off, and its poles can be reversed by reversing the current. This is why electromagnets are used in scrapyard cranes, electric bells, relays (switches operated by a small current to control a large one), loudspeakers and MRI scanners.

9.The Force on a Current: The Motor Effect

If a wire carrying current is placed in a magnetic field, the two magnetic fields interact and the wire feels a force. This is the motor effect. When the wire is at right angles to the field, the size of the force is:

Formula

F = B × I × L

B is the magnetic flux density in tesla (T), I the current in amperes, L the length of wire in the field in metres, and F the force in newtons.

The direction of the force is found with Fleming's left-hand rule: hold your left thumb, first finger and second finger at right angles. The First finger points along the Field (north to south), the seCond finger along the Current, and the Thumb shows the direction of Thrust (motion). The force is zero if the wire is parallel to the field.

Worked example 6: force on a wire

A 0.10 m length of wire carries 5.0 A at right angles to a field of 0.40 T. Find the force.

F = B × I × L = 0.40 T × 5.0 A × 0.10 m = 0.20 N.

In a simple d.c. motor, a rectangular coil sits between the poles of a magnet. The two long sides carry current in opposite directions, so one side is pushed up and the other down, which turns the coil. A split-ring commutator reverses the current every half turn so the coil keeps turning the same way. The motor turns faster or with greater turning effect if you increase the current, use a stronger magnet or add more turns.

10.Electromagnetic Induction

In 1831 Michael Faraday showed that a voltage is produced in a conductor when the magnetic field through it changes. This is electromagnetic induction, and the voltage is called an induced e.m.f. (electromotive force). If the conductor is part of a complete circuit, a current flows. You can do it with a coil connected to a sensitive meter: pushing a magnet into the coil makes the needle flick; holding the magnet still gives nothing; pulling it out flicks the needle the other way.

The induced voltage is larger when you move the magnet faster, use a stronger magnet, or use more turns. Lenz's law tells us the direction: the induced current always flows in the direction that opposes the change that caused it. This is consistent with conservation of energy: you must do work to push the magnet in.

A generator uses this effect. A coil spins in a magnetic field (turned by steam, water, wind or an engine) and an alternating voltage appears at the slip rings. The output rises and falls smoothly each rotation, giving the sine-shaped graph below. Faster rotation raises both the voltage and the frequency.

An a.c. generator and its output Left: a coil seen end-on spinning between a north pole and a south pole. Right: a sine-shaped graph of voltage against time, which draws repeatedly as the coil turns. N S coil (end view) spinsin the field voltagetime one full turn = one full cycle
Figure 5. A simple generator. The voltage is zero when the coil lies square-on to the field (most field passing through it, but not changing) and is largest when the coil sides cut across the field fastest. (Original EDUSAMBAM diagram.)

11.Transformers and Power Lines

A transformer changes the size of an alternating voltage. It has a primary coil and a secondary coil wound on a shared soft-iron core. The alternating current in the primary makes a changing magnetic field in the core; this field induces an alternating voltage in the secondary. A transformer works only with a.c., because a steady d.c. gives no changing field. The voltages are related to the number of turns:

Formula

Vs ÷ Vp = Ns ÷ Np

A step-up transformer has more turns on the secondary and raises the voltage. A step-down transformer has fewer and lowers it. For an ideal transformer, VpIp = VsIs.

Worked example 7: a phone-charger transformer

A transformer has 2300 turns on the primary coil and is connected to 230 V. How many secondary turns give 12 V?

Ns = Np × (Vs ÷ Vp) = 2300 × (12 ÷ 230) = 120 turns (a step-down transformer).

Transformers explain how electricity travels long distances. Power losses in cables are given by I²R, so reducing the current greatly reduces the loss. Because P = VI, raising the voltage lets the same power travel with a smaller current.

Worked example 8: why high voltage?

100 kW is sent along cables of total resistance 5 Ω. Compare transmission at 1000 V and at 100 000 V.

At 1000 V: I = 100 000 ÷ 1000 = 100 A, so loss = I²R = 100² × 5 = 50 000 W (50 kW), half the power!

At 100 000 V: I = 100 000 ÷ 100 000 = 1 A, so loss = 1² × 5 = 5 W.

The numbers are chosen to show the idea; real grids vary, but they use the same principle: step up for transmission, step down near homes.

12.Common Mistakes to Avoid

Watch out

13.A Short Timeline

YearEvent
1600William Gilbert publishes De Magnete, an early systematic study of magnetism and of the Earth as a magnet.
1820Oersted publishes his observation that a current affects a compass needle; André-Marie Ampère soon develops the mathematics of forces between currents.
1831Faraday demonstrates electromagnetic induction.
1865James Clerk Maxwell publishes a theory uniting electricity, magnetism and light as electromagnetic waves.
1887–1888Heinrich Hertz produces and detects radio waves, confirming Maxwell's prediction.

14.Check Your Understanding

Try each question before opening the answer.

1. A current of 3.0 A flows for 20 s. How much charge passes?

Q = I × t = 3.0 A × 20 s = 60 C.

2. A 6.0 Ω resistor has 9.0 V across it. What current flows?

I = V ÷ R = 9.0 ÷ 6.0 = 1.5 A.

3. Find the total resistance of 10 Ω and 15 Ω in parallel.

1/R = 1/10 + 1/15 = 3/30 + 2/30 = 5/30, so R = 30 ÷ 5 = 6 Ω.

4. A 60 W lamp is on for 5 hours. How many units (kWh) does it use?

E = 0.060 kW × 5 h = 0.30 kWh.

5. Why is a fuse placed in the live wire?

If a fault causes a large current, the fuse melts and disconnects the live supply, so the appliance is no longer at a dangerous voltage.

6. Name two ways to make an electromagnet stronger.

Any two of: increase the current, add more turns, put a soft-iron core inside the coil.

7. A transformer has 200 primary turns and 50 secondary turns on a 120 V supply. What is the output voltage?

Vs = 120 × (50 ÷ 200) = 30 V. It is a step-down transformer.

Summary

For teachers and parents

This article follows the usual lower-secondary and O-Level sequence. Practical ideas that need only simple equipment: rub a balloon and observe paper pieces; plot a V–I graph for a resistor and a filament lamp; make an electromagnet by winding insulated wire round an iron nail and counting how many paper clips it lifts for different currents or numbers of turns. Mains electricity can be lethal, so all demonstrations should use low-voltage cells or battery packs only. Please check that the syllabus and units used by your examination board match those here.

Keep Learning on EDUSAMBAM

Sources and Further Reading

This article is original EDUSAMBAM writing. Definitions, constants and historical dates were checked against the sources below. Diagrams are original and were not copied from any source.

Note on the numbers: numerical examples use rounded values and a typical resistivity for copper. Please check them against your own syllabus or exam board specification before relying on them.

Test Your Understanding

Practice Quiz

12 questions. Select an answer for each, then submit to see your score instantly.

0 of 12 answered
0/12
You scored 0%
Keep practicing
1.A charge of 12 C passes a point in 4 s. What is the current?
2.Which statement about charges is correct?
3.A 5 Ω resistor has a current of 2 A. What is the voltage across it?
4.Where should a voltmeter be connected to measure the voltage across a lamp?
5.What is the total resistance of 4 Ω and 6 Ω connected in series?
6.What is the total resistance of 6 Ω and 3 Ω connected in parallel?
7.A 500 W appliance runs for 2 hours. How much energy does it use?
8.What is the main job of the earth wire in an appliance with a metal case?
9.Which materials are strongly attracted to a magnet?
10.Who first reported that an electric current affects a compass needle?
11.What must happen for a voltage to be induced in a coil?
12.A transformer has 100 primary turns, 400 secondary turns, and 10 V on the primary. What is the secondary voltage?