# Magnetic Field of Straight Current-Carrying Wire

Created by Dominik Czernia, PhD candidate
Reviewed by Bogna Szyk and Adena Benn
Last updated: Sep 15, 2022

This magnetic field of straight current-carrying wire calculator makes it easy to describe the magnetic field produced by a long and straight current-carrying wire. Read on to understand the basics of this phenomenon and find out how you can estimate the strength of this field.

Be sure to check our electromagnetic force on current-carrying wire and the magnetic force between wires calculators too!

## Magnetic field of a wire

Did you know that electricity is always strictly linked to magnetism? It is the result of one of Maxwell's equations which says that flowing electric current produces a magnetic field. Let us consider the case of a long straight wire which carries an electric current. In this particular situation, magnetic field lines form concentric circles around the cable, and the strength of the magnetic field depends on the distance from the wire and the current flowing through it.

We can also wind a wire tightly in a thin coil, forming a solenoid. To learn more about solenoids, try our solenoids magnetic field calculator.

## How to calculate magnetic field around a wire?

To correctly calculate the magnetic field around a wire, we would need to make use of cross product and the right-hand rule. But we can also approximate. Assuming that our wire is straight and very long, we can estimate a magnetic field around the wire with the following equation:

B = μ0 * I / (2 * π * d)

where

• I is the current;
• d is the distance from the wire;
• B is the strength of the magnetic field produced at distance d;
• μ0 is the permeability of free space which have constant value μ0 = 4 * π * 10^(-7) [T * m / A].

You can see that the higher the current flowing through the wire and the closer we are to the wire, the stronger the magnetic field produced is.

## Earth's magnetic field

The Earth and the other planets and stars in our universe act like huge magnets. The Earth's magnetic field originates in its core, where very hot electrically conducting fluids are. The motion of these fluids generates a flowing current just like in the wire, which is then responsible for producing the magnetic field. The mean magnitude of Earth's magnetic field is changing over the years, but presently it equals about 5 × 10^^(-5) T. Although this is a tiny field, we can still see it on the compass.

Let's use our calculator to estimate a current that must flow in a straight wire to obtain Earth's magnetic field at a distance of 1 cm from the wire. It seems after calculations that we need only 2.5 A to keep up with Earth's magnetic field!

Dominik Czernia, PhD candidate
Current
A
Distance
in
Magnetic field
T
People also viewed…

### Alien civilization

The alien civilization calculator explores the existence of extraterrestrial civilizations by comparing two models: the Drake equation and the Astrobiological Copernican Limits👽

### BMR - Harris-Benedict equation

Harris-Benedict calculator uses one of the three most popular BMR formulas. Knowing your BMR (basal metabolic weight) may help you make important decisions about your diet and lifestyle.

### Terminal velocity

Determine the maximum velocity achievable by a falling object using the terminal velocity calculator.

### Virtual temperature

Use our virtual temperature calculator to find the density temperature using either known temperatures or the mixing ratio!
{"ft_lang_label":"__label__en","ft_lang_prob":0.9190409,"math_prob":0.97319335,"size":2579,"snap":"2022-40-2023-06","text_gpt3_token_len":551,"char_repetition_ratio":0.19262137,"word_repetition_ratio":0.008928572,"special_character_ratio":0.20977123,"punctuation_ratio":0.07613169,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9856773,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-04T06:29:06Z\",\"WARC-Record-ID\":\"<urn:uuid:92c3e02e-e5c5-4d50-95df-29527c4156a7>\",\"Content-Length\":\"274635\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2dd3619a-7d9e-499e-854b-938c0f8db295>\",\"WARC-Concurrent-To\":\"<urn:uuid:074eadc9-bef9-4f40-a284-ae4f611a3dd6>\",\"WARC-IP-Address\":\"68.70.205.4\",\"WARC-Target-URI\":\"https://www.omnicalculator.com/physics/magnetic-field-of-straight-current-carrying-wire\",\"WARC-Payload-Digest\":\"sha1:L2KUKLK7SVD4GU3QOBHLF2XWFSCLLUF2\",\"WARC-Block-Digest\":\"sha1:CDXDFEVJ23TPJSGWEAGP5PJGKLYWF2TO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030337480.10_warc_CC-MAIN-20221004054641-20221004084641-00000.warc.gz\"}"}