# Magnetic effect of an electric current: The idea

Source page: https://www.materialinsights.org/science/electromagnetism_oersted/sci-idea/

#### In plain words

The idea explained without jargon

A wire carrying an electric current is surrounded by a magnetic field, a region where a compass needle feels a push ^[1]. The field runs in circles round the wire, so a needle nearby swings to point across the wire ^[3]. Reverse the current and the needle swings the other way ^[1]. Wind the wire into a coil and the circles add up, so the coil acts like a bar magnet, much stronger with an iron core inside ^[6]. Because each current makes a field and feels other fields, two wires side by side pull together when their currents run the same way and push apart when they run opposite ways ^[2]. That push is what turns every electric motor.

as of 2026-11-11

#### Key equation

The equation that sums it up, and what each symbol means

**Equation**
: B = mu_0 I / (2 pi r)

**Symbols**
: {"B":"the strength of the magnetic field, in tesla","mu_0":"the magnetic constant of empty space, in henries per metre","I":"the current in the wire, in amperes","r":"the distance from the wire, in metres"}

**Note**
: This is the field round a long straight wire, which follows from Ampère's law relating a magnetic field to the current that makes it ^[2]; Biot and Savart gave the first rule for calculating it ^[3].

as of 2026-11-11

#### An analogy

A picture from everyday life that makes the idea easier to hold

Picture a current as water rushing down a straight channel and the magnetic field as the swirl it sets up in a pond around it, circling the channel. A leaf on the pond turns to follow the swirl, as a compass needle does. The picture stops being true because nothing actually flows round the wire: the field is a force that would act on a magnet or a moving charge placed there.

as of 2026-11-11

#### Sources

1. [July 1820: Oersted & Electromagnetism](https://aps.org/apsnews/2008/07/1820-oersted-electromagnetism) American Physical Society (APS News, This Month in Physics History)
2. [André-Marie Ampère](https://nationalmaglab.org/magnet-academy/history-of-electricity-magnetism/pioneers/andre-marie-ampere/) National High Magnetic Field Laboratory (Magnet Academy)
3. [Electromagnetism History: 1820 to 1829 (Magnet Academy timeline)](https://nationalmaglab.org/magnet-academy/history-of-electricity-magnetism/timeline/1820-1829/) National High Magnetic Field Laboratory
4. [William Sturgeon](https://www.lindahall.org/about/news/scientist-of-the-day/william-sturgeon/) Linda Hall Library (Scientist of the Day, William B. Ashworth, Jr.), 2025

## Other sections

- [Summary](https://www.materialinsights.org/science/electromagnetism_oersted/index.md)
- [Discovery](https://www.materialinsights.org/science/electromagnetism_oersted/sci-discovery/index.md)
- [Technologies](https://www.materialinsights.org/science/electromagnetism_oersted/sci-technologies/index.md)
