An electric current is a flow of electric charge. A fundamental principle of electromagnetism states that moving charges create magnetic fields. The shape and strength of the magnetic field depend on the geometry of the current-carrying conductor.
Concept: An electric current flowing through a long, straight wire produces a magnetic field in the form of concentric circles centered on the wire.
Strength of the Field: The magnetic field strength () is directly proportional to the current () and inversely proportional to the distance () from the wire:
Direction — Right-Hand Grip Rule: If the thumb of the right hand points in the direction of the conventional current, the curled fingers indicate the direction of the magnetic field lines.

Concept: A circular loop of wire carrying a current produces a magnetic field that is strongest and most concentrated at its center.
Strength of the Field at the center of a single loop ():
For a coil with turns, each turn contributes equally, so the total field is:
Key point: Increasing or strengthens the field; increasing weakens it.

Concept: A solenoid is a long coil of wire wound around a cylindrical core. When current flows through it, it creates a strong, nearly uniform magnetic field inside the coil — similar to the field of a bar magnet. The field outside is comparatively very weak.
Strength of the Field inside the solenoid:
Note: The field at the ends of the solenoid is approximately half the central value:
Direction — Right-Hand Grip Rule for Solenoids: If the fingers of the right hand curl in the direction of the current flowing through the coils, the thumb points toward the North pole of the solenoid.


| Conductor Shape | Formula for | Key Characteristics |
|---|---|---|
| Long, Straight Wire | Concentric circles; strength decreases with distance . | |
| Flat Circular Coil (center) | Strongest at center; proportional to , inversely to . | |
| Solenoid (inside) | Strong, uniform field inside; acts like a bar magnet. |