- Home
- Physics
- Magnetism & induction
- Magnetic Field of a Straight Wire Calculator
Magnetic Field of a Straight Wire Calculator
Field at a distance from a long straight current-carrying wire, or the current or distance.
Practice questions
Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.
A long wire carries 10 A. Find the magnetic field 5 cm from it.
What current gives a field of 50 µT (about the Earth's field) 2 cm from a wire?
Worked example
Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.
Question: A long wire carries 10 A. Find the magnetic field 5 cm from it.
- Write the given values in SI units
- Put the values into the formula
- Write the given values in SI units
I = 10 A r = 5 cm = 0.05 m μ0 = 4π × 10−7 T m/A To find: B (Magnetic field) - Put the values into the formula
B = μ0 I2π r = (1.257 × 10−6) × 102π × 0.05 = 4 × 10−5 T (= 40 µT)
Terms used on this page
New to a word in the question or the solution? Here it is in simple language.
- Displacement (s)
- How far a body ends up from where it started, in a straight line, with a direction. If you walk 5 m forward and 5 m back, the distance is 10 m but the displacement is 0.
- Electric current (I)
- The flow of electric charge through a wire, measured in amperes (A). A phone charger gives roughly 1 to 3 A.
Symbols in this solver
What each box asks for, and its unit.
| Symbol | What it means | SI unit |
|---|---|---|
| I | Current | A (or mA) |
| r | Distance from the wire | m (or km, cm, mm, R⊕, AU) |
| B | Magnetic field | T (or mT, µT, G) |
Formula & concept
Magnetic field at a distance from a long straight wire carrying a current, or the current or distance from the field.
Key idea: The field lines are circles round the wire. Point your right thumb along the current and your fingers curl the way the field goes. The Earth's field is about 50 µT, for comparison.
What it can find
Choose the unknown with the “What do you want to find?” buttons: magnetic field, current, distance from the wire. The formula is rearranged for you and every step is shown.
How to use this calculator
- Choose what you want to find. Its box turns orange.
- Type the known values from your question and pick the unit for each one.
- Press Solve step by step.
- Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
- Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
- Stuck on a word? The terms section explains it in simple language.