Jump to main content

Measuring Magnetic Fields

202 reviews


Have you ever noticed how magnets appear to have no effect on each other when they are far apart? Then, when you slowly move them closer together, you will start to feel a gentle pull until they suddenly snap together? How exactly does the strength of a magnet change with distance, and how would you measure it if you wanted to find out? In this project you will build a circuit that can measure the strength of a magnetic field and see how the field strength changes with distance.


Areas of Science
Time Required
Very Short (≤ 1 day)
Material Availability
A kit is available from our partner Home Science Tools. See the Materials section for details.
Average ($40 - $80)
Short circuits can get very hot. Double-check all of your wiring before you connect the 9 V battery.

By Akram Salman  AMD logo , Andrew Olson, PhD, and Ben Finio, PhD, Science Buddies

Recommended Project Supplies

Get the right supplies — selected and tested to work with this project.

View Kit


Build a circuit that can measure magnetic field strength and measure how field strength changes with distance.


Magnets and magnetic fields are used in everyday electrical equipment such as motors and refrigerators. You will also find them in electronic equipment like cell phones and radios. A magnetic field can be produced by a permanent magnet, or by electrical current flowing through a wire. You can make an electromagnet by wrapping a coil of wire around a magnetic material (such as iron, magnesium, or cobalt). When current flows through the coil, a magnetic field is produced. Magnetic fields are also important in communication systems. The waves used to transfer information for television and radio broadcasts or cell phone calls are electromagnetic waves. Light, x-rays, and radio waves are all examples of electromagnetic waves.

A magnetic field can be visualized as magnetic field lines, as shown in Figure 1. The strength of a magnetic field is defined as the density of magnetic field lines and is strongest close to the magnet. The strength of the magnetic field diminishes (lessens) with increasing distance from the magnet.

Drawing of the magnetic field lines and directions of a bar magnet drawing of field lines magnetic field from iron filings
Figure 1. Left: magnetic field lines are represented by arrows that originate at the north pole of a magnet and curve around toward the south pole. The lines are spaced closer together near the magnet, and farther apart away from the magnet (image credit Wikimedia Commons user Geek3, 2010). Right: Field lines can be visualized by sprinkling iron filings on a piece of paper over a bar magnet.

In general, a device that measures the strength of a magnetic field is called a magnetometer. The official SI unit for magnetic field strength is the tesla (T). Magnetic field strength is also measured in units of gauss (G) (1 G = 10-4 T). A device that measures magnetic field strength in gauss, specifically, is called a gaussmeter. The gaussmeter that you will build for this project is based on the Hall effect, discovered by Dr. Edwin Hall in 1879. Hall discovered that when a current is passing through a thin sheet and a magnetic field is applied perpendicular to the sheet, a voltage (called the Hall voltage) is generated across the third dimension, perpendicular to the direction of the original current. The magnitude of the Hall voltage is proportional to magnetic field strength. The Hall effect is used in different applications, including making an electric motor.

Your gaussmeter will be based on an integrated circuit called a Hall sensor that allows you to measure the Hall voltage generated by a magnetic field. You will measure the voltage using a multimeter. Once you have constructed the gaussmeter, you can use it to measure how the strength of the magnetic field varies with distance from the Hall sensor. How do you expect field strength to vary with distance? Will the relationship be linear or nonlinear?

Terms and Concepts

To do this project, you should do research that enables you to understand the following terms and concepts:



To learn about magnetism and magnetic fields, see this Science Buddies tutorial:

To learn about the Hall effect, this website is a good start:

  • Nave, C.R. (2006). Hall Effect. HyperPhysics, Department of Physics and Astronomy, Georgia State University. Retrieved May 10, 2006.

To learn about the Hall effect sensor used in this project, see the product's datasheet:

This Science Buddies project has information on making your own electromagnets: The Strength of an Electromagnet

For more information about how to use a breadboard, see this tutorial:

For more information about how to use a multimeter, see this tutorial:

Materials and Equipment Buy Kit

Recommended Project Supplies

Get the right supplies — selected and tested to work with this project.

View Kit

If you want to build and measure the strength of simple electromagnets, instead of permanent magnets, you can use the Strength of an Electromagnet Kit, available from our partner Home Science Tools.

Disclaimer: Science Buddies participates in affiliate programs with Home Science Tools, Amazon.com, Carolina Biological, and Jameco Electronics. Proceeds from the affiliate programs help support Science Buddies, a 501(c)(3) public charity, and keep our resources free for everyone. Our top priority is student learning. If you have any comments (positive or negative) related to purchases you've made for science projects from recommendations on our site, please let us know. Write to us at scibuddy@sciencebuddies.org.

Experimental Procedure

Assembling Your Gaussmeter Circuit

Important: your Sensor Kit contains two parts that look very similar: a transistor and a Hall effect sensor. They are both small black plastic parts with three metal legs. This project requires the Hall effect sensor. When viewed from the top, it is smaller the the transistor and angled on one face, not rounded, as shown in Figure 2. Make sure you use the Hall effect sensor, or your circuit will not work. There is some writing on one side of the Hall effect sensor (the smaller side). The direction this writing faces is important, but it can be hard to see. Look carefully and try tilting the sensor under a bright light to see which side has the writing.

Top-down view of a hall effect sensor and transistor inserted into a breadboard
Figure 2. Hall effect sensor (left) and transistor (right) viewed from the top.

Assemble your gaussmeter circuit on a breadboard, as shown in the slideshow and described in Table 1. If this is your first time using a breadboard, refer to the Science Buddies reference How to Use a Breadboard for Electronics and Circuits. For a circuit schematic, see the Help section.

Slideshow with step-by-step instructions viewable online.

Part Picture Breadboard Symbol Location
Voltage regulator
An LM7805 voltage regulator
Breadboard diagram symbol for an LM7805 voltage regulator
E2, E3, E4
Writing facing to the left
Hall effect sensor
An A1302 hall effect sensor
Breadboard diagram symbol for an A1302 hall effect sensor
B9, B10, B11
Writing (smaller side) facing to the left. Look carefully, the writing is hard to see!
Jumper wires (6)
A red jumper wire
Breadboard diagram symbol for a red jumper wire
C2 to (+) bus
B3 to (+) bus
C4 to C9
A10 to (-) bus
(-) bus to multimeter
A11 to multimeter
9 V battery and snap connector
A nine volt battery
Breadboard diagram symbol for a nine volt battery
Red lead to (+) bus
Black lead to (-) bus
A DVM810 multimeter
Breadboard diagram symbol for a DVM810 multimeter
Set to measure 20 volts DC.

Black probe in COM. Connect to ground bus with alligator clip and jumper wire.

Red probe in VΩmA. Connect to A11 with alligator clip and jumper wire.
Table 1. Components and their locations in the circuit. Source material for breadboard symbol images credit Fritzing.org.

Measuring Magnetic Fields

  1. Once you have assembled your circuit, your multimeter should display about 2.50 V when no magnets are nearby. If you bring a magnet near the Hall sensor, the voltage should fluctuate (whether the voltage goes up or down depends on which pole of the magnet faces the front of the sensor). If the voltage goes all the way down to 0 or all the way up to 5, then your magnet is causing the sensor to saturate, or reach the limits of its range, and you should use a weaker magnet. Experiment with your circuit briefly to see if it is working. If it does not behave as described here, see the Help section.
  2. Prepare a data table in your lab notebook to record distance between the magnet and Hall sensor, voltage, and magnetic field strength. You may want to pre-determine the distances you will test (for example, every 5 mm).
  3. Set up your experiment so you can measure the distance between your magnet and the front of the Hall sensor (the side with the writing on it) using a ruler. Depending on the size and shape of your magnet, you may want to prop it up on something (like a small book) so it is level with the front of the sensor. It is important for the magnet to remain still while you take your readings; your readings may fluctuate too much if you try to hold the magnet in front of the sensor. Figure 3 shows an example experimental setup.
Completed breadboard circuit for a gaussmeter
Figure 3. Experimental setup to measure the effect of distance on magnetic field strength. A stack of sticky notes is used to hold the magnet level with the front of the Hall sensor.
  1. Make sure the sensor is not near any magnets. Record the voltage displayed on the multimeter in your lab notebook and label it as "V0". Refer to the Science Buddies reference How to Use a Multimeter if you need help using a multimeter.
  2. Now, starting with the magnet touching the face of the sensor (a distance of zero), record the voltage displayed on the multimeter.
  3. Slide the magnet directly away from the sensor (make sure you move it straight backwards, not to the side). Record the new distance and voltage in your data table.
  4. Repeat step 6 until the voltage stops changing.
  5. Repeat steps 5–7 at least two more times, for a total of at least three trials.
  6. Calculate an average voltage for each distance.
  7. Now, convert voltage to magnetic field strength. You can do this using information from the sensor's datasheet, which says that the sensor has a sensitivity of 1.3 mV/G (note that the sensitivity is given in millivolts (mV) and you took your readings in volts (V), so you will need to convert from V to mV). You can convert voltage to field strength using the following equation:

Equation 1:


  • B is the magnetic field strength in gauss (G).
  • V0 is the voltage when there is no magnet nearby in millivolts (mV).
  • V is the voltage recorded at a certain distance in millivolts (mV).
  • 1.3 is the sensor's sensitivity in millivolts per gauss (mV/G).

Note that it is okay if the value you calculate is negative. See the Help section for more information.

  1. Make a graph of magnetic field strength versus distance.
    1. How does field strength change with distance?
    2. Are your results consistent with the behavior you observe when using magnets? In other words, can magnets push and pull on each other from across a room? How close do you need to bring them before they will snap together on their own?


For troubleshooting tips, please read our FAQ: Measuring Magnetic Fields.

icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.


  • Can you use your gaussmeter circuit to measure how another variable affects magnetic field strength? For example, what about the type or size of magnet, temperature instead of distance, or the number of wire turns in an electromagnet? For the latter two ideas, see the Science Buddies projects How the Strength of a Magnet Varies with Temperature and The Strength of an Electromagnet.
  • Can you use your gaussmeter circuit to create a map of the field lines around a magnet? Remember that magnetic fields have both magnitude and direction. The Hall sensor in your circuit only measures the magnitude of the field that is perpendicular to the face of the sensor (the side with writing on it). That means in order to draw field lines, like the ones shown in Figure 1, you would need two take two measurements at each point in space, with the sensor rotated 90° for X and Y measurements. Knowledge of math topics like the Pythagorean theorem, vectors, and trigonometry will be helpful for this experiment.
  • The previous point might be easier if you add a second Hall sensor to your circuit, perpendicular to the first one, so you can take two readings at once. You can order individual Hall sensors from Jameco Electronics. Can you add a third sensor to measure the magnitude and three-dimensional orientation of a magnetic field at any point in space?
  • What is the exact mathematical relationship between magnetic field strength and distance from the magnet? Does it follow the inverse square law or is it something else? Be careful, the answer to this question can be tricky!

Frequently Asked Questions (FAQ)

If you are having trouble with this project, please read the FAQ below. You may find the answer to your question.
Q: My multimeter's screen reads zero (e.g. "00.0" or "0.00") and the reading does not change when I move a magnet near the Hall sensor. What am I doing wrong?
A: When working properly, the Hall sensor should output a voltage in the range of 0–5 V, so you should see a value between 0.00–5.00 on your multimeter's screen when it is set up correctly. There are three possibilities if your multimeter's screen reads zero:
  1. You have your circuit set up correctly, but your multimeter set up incorrectly. Make sure the black probe is plugged into the port labeled COM, the red probe is plugged into the port labeled VΩMA, and the dial is set to measure 20 V (the white "20" in the upper-left section of the wheel).
  2. You have your multimeter set up correctly, but part of your circuit is incorrect. It only takes a single misplaced component lead or jumper wire to prevent the circuit from working, in which case the Hall sensor may not output a voltage and the multimeter will read zero.
  3. Make sure the exposed metal parts of the probes and alligator clips do not touch each other. This will cause a short circuit and make the multimeter read zero.
Q: My multimeter's screen stays blank when I turn it on. What am I doing wrong?
A: You may have a defective multimeter. Please contact us at scibuddy@sciencebuddies.org.
Q: I get a negative number when I calculate the magnetic field. Is that possible?
A: Yes. Magnetic fields have both a magnitude and a direction (represented by the arrows in Figure 1). The magnetic field will be positive when it points into the front of the sensor—so either when the north pole of a magnet is placed against the front of the sensor, or when the south pole of a magnet is placed against the back of the sensor. If the magnet's orientation is reversed then the magnetic field will be negative.
Q: My circuit feels hot to the touch, or I notice a burning smell. What is wrong?
A: Immediately disconnect the battery and double-check your wiring. In general, there are several things that can cause this problem, some of which may cause permanent damage to certain components in your circuit:
  • You have a short circuit (power and ground are shorted directly together). This can happen, for example, if you accidentally place both leads from the battery in the same breadboard bus, or if you misplace a jumper wire. This causes a large amount of current to flow from the battery, which can cause it and the circuit to overheat. Plastic parts (like the breadboard and wire insulation) may even begin to melt.
  • You connect the pins of a component incorrectly, for example by reversing power and ground, or by connecting power to an "output" pin. Some electronic parts contain built-in protection against such accidental connections, but some do not.
  • You supply too much voltage to a part. For example, in this project the Hall sensor is designed to work with a supply voltage of 5 V, and it is rated for an absolute maximum supply voltage of 8 V. Connecting it directly to the 9 V battery may damage it.
Q: How do I use a multimeter?
A: Refer to the Science Buddies reference How to Use a Multimeter.
Q: How do I use a breadboard?
A: Refer to the Science Buddies reference How to Use a Breadboard for Electronics and Circuits.
Q: The writing on one of the parts in my kit does not match exactly what is shown in the pictures. Do I have the right part?
A: In addition to the main part number (e.g. "7805"), many parts contain additional numbers and letters that describe when and where they were manufactured. It is OK if not all the writing on your parts matches what you see in the pictures.
Q: How does the circuit work? What is the circuit diagram?
A: The operation of this circuit is fairly simple. The A1302 Hall sensor outputs an analog voltage (Vout in Figure 3) ranging from 0–5 V. This voltage can be converted to magnetic field strength in gauss using Equation 1 from the procedure. Nominally, the sensor should output about 2.5 V when no field is present. You can learn more about the sensor from its datasheet.

However, the sensor requires a 5 V power supply to operate correctly. The battery supplied in your DIY Sensors Kit is 9 V. The LM7805 voltage regulator is used to convert the 9 V from the battery to a stable 5 V supply for the sensor. You can learn more about the voltage regulator from its datasheet.

Circuit diagram for a gaussmeter
Figure 3. Schematic for the gaussmeter circuit. Pin numbers on the physical parts are from left to right when the front (side with writing) is facing you.


If you like this project, you might enjoy exploring these related careers:

Career Profile
Just as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more
Career Profile
What makes it possible to create high-technology objects like computers and sports gear? It's the materials inside those products. Materials scientists and engineers develop materials, like metals, ceramics, polymers, and composites, that other engineers need for their designs. Materials scientists and engineers think atomically (meaning they understand things at the nanoscale level), but they design microscopically (at the level of a microscope), and their materials are used macroscopically… Read more
Career Profile
Electricians are the people who bring electricity to our homes, schools, businesses, public spaces, and streets—lighting up our world, keeping the indoor temperature comfortable, and powering TVs, computers, and all sorts of machines that make life better. Electricians install and maintain the wiring and equipment that carries electricity, and they also fix electrical machines. Read more
Career Profile
Electrical engineering technicians help design, test, and manufacture electrical and electronic equipment. These people are part of the team of engineers and research scientists that keep our high-tech world going and moving forward. Read more

Contact Us

If you have purchased a kit for this project from Science Buddies, we are pleased to answer any question not addressed by the FAQ above.

In your email, please follow these instructions:
  1. What is your Science Buddies kit order number?
  2. Please describe how you need help as thoroughly as possible:


    Good Question I'm trying to do Experimental Procedure step #5, "Scrape the insulation from the wire. . ." How do I know when I've scraped enough?
    Good Question I'm at Experimental Procedure step #7, "Move the magnet back and forth . . ." and the LED is not lighting up.
    Bad Question I don't understand the instructions. Help!
    Good Question I am purchasing my materials. Can I substitute a 1N34 diode for the 1N25 diode called for in the material list?
    Bad Question Can I use a different part?

Contact Us

News Feed on This Topic

, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "Measuring Magnetic Fields." Science Buddies, 26 Oct. 2023, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p030/electricity-electronics/measure-magnetic-fields?isb=cmlkOjY3MjY5MDIsc2lkOjAscDoxLGlhOkVsZWM&from=TSW. Accessed 22 Feb. 2024.

APA Style

Science Buddies Staff. (2023, October 26). Measuring Magnetic Fields. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p030/electricity-electronics/measure-magnetic-fields?isb=cmlkOjY3MjY5MDIsc2lkOjAscDoxLGlhOkVsZWM&from=TSW

Last edit date: 2023-10-26
Free science fair projects.