Magnetometer App: How to Detect Magnetic Fields With an iPhone

Published Oct 17, 2026

Learn what a magnetometer app can detect, how to use one with an iPhone, and why nearby objects and phone accessories can affect readings.

Magnetometer App: How to Detect Magnetic Fields With an iPhone

A magnetometer app uses a phone’s magnetic sensor to show changes in the magnetic field around it. On an iPhone, that sensor supports compass functions and can also help reveal magnetic interference nearby. It is useful for simple checks, but it is not a universal metal detector: it responds to magnetic fields, not to every kind of metal.

Understanding that distinction helps you get more useful readings. Whether you are checking why a compass direction shifts indoors, testing for a magnet near a surface, or exploring how magnetic fields change around everyday objects, the method is similar: establish a baseline, move the phone carefully, and compare readings. The result is an indication, not a guarantee that a particular object is present.

What does a magnetometer app measure?

A magnetometer measures the strength and direction of a magnetic field around the phone. Earth itself has a magnetic field, which is why a compass can indicate magnetic north. Nearby magnets, magnetic clasps, speakers, steel objects, electrical equipment, and other sources can change the field the sensor detects.

A magnetometer app presents sensor information in a form you can use. Depending on the app, this may appear as a compass direction, a changing field-strength value, or a visual response. The display represents the phone’s sensor reading at that moment; it does not identify an object, tell you its material with certainty, or show exactly where a magnetic source is located.

  • Compass use: The sensor helps estimate direction using Earth’s magnetic field.
  • Magnetic-field checks: A changing reading can indicate that a magnetic source or interference is nearby.
  • Exploration: Comparing readings at different positions can show how a field changes across an area.

What an iPhone magnetometer can—and cannot—detect

The key word is magnetic. A phone magnetometer responds to magnetic fields. It may react to a permanent magnet or to a magnetic object close enough to affect the sensor. It will not reliably detect non-magnetic materials simply because they are metal. Aluminum, copper, and many stainless-steel items, for example, are not necessarily magnetic in a way the phone can detect.

For the same reason, a magnetometer reading cannot confirm that an object is a nail, pipe, wire, or stud. A changing reading tells you that the sensor experiences a field change. It does not establish the source, its depth, or whether a wall is safe to drill. Use appropriate inspection methods and safety checks before cutting, drilling, or working near electrical or plumbing systems.

Distance matters, too. Magnetic influence generally becomes harder to notice as you move away from its source, but the result depends on the object, its orientation, surrounding materials, and other fields in the area. A weak or unchanged reading does not prove that no magnetic material is present.

How to use a magnetometer app: a simple comparison

For a useful check, compare the sensor response in a clear starting location with its response closer to the object or area you are investigating. Keep the phone’s position and orientation as consistent as you can. This makes differences easier to interpret than waving the phone quickly and trying to remember what the display did.

  1. Choose a starting point. Move away from obvious magnets, speakers, magnetic phone accessories, and large metal objects where practical. Hold the phone steady and note the app’s initial display.
  2. Keep the phone in a consistent position. If the app gives a field-strength reading, hold the device in the same orientation as you move. If it shows a compass, note that turning the phone changes its direction display.
  3. Approach the area slowly. Move the phone a short distance at a time. Watch for a repeatable change rather than treating one brief jump as proof of an object.
  4. Move away and check again. Return to the starting point, then repeat the approach. A similar response on another pass is more informative than an isolated fluctuation.
  5. Change one variable at a time. If possible, move nearby magnetic items or remove a magnetic case, then repeat the comparison.

Example: checking whether a magnetic clasp affects a compass

Suppose a compass direction shifts when you hold your phone near a bag’s magnetic clasp. First, stand away from the bag and note the compass direction with the phone held level. Then bring the clasp closer without changing your grip more than necessary. If the direction changes, move the phone away and repeat the check. A similar shift as you approach the clasp suggests that it is influencing the local magnetic field. It does not prove the clasp is the only possible source, nor does it provide a calibrated measurement of its strength.

This comparison can also help explain why a compass behaves differently in different indoor locations. Nearby objects and building equipment can affect the sensor, so an indoor reading may not be a dependable guide to a route. For navigation, move away from suspected interference, follow any calibration prompts, and compare with other reliable orientation cues.

Why magnetometer readings can change unexpectedly

A reading may shift for reasons unrelated to the object you are testing. The phone’s orientation changes how the sensor relates to the surrounding field. Magnetic cases, accessory mounts, headphones, speakers, tools, and nearby electronics can also influence a reading. Even where you stand matters: an object or device just outside your view may be close enough to affect the sensor.

Calibration is another consideration, particularly for compass behavior. Follow the iPhone or app’s calibration guidance if it appears, and move to a location with less suspected interference before relying on a direction. Calibration helps the device interpret sensor information; it cannot remove a real magnetic field caused by a nearby object.

For repeatability, use the same phone, app, grip, orientation, and route between comparison points. Avoid changing several conditions at once. If a reading does not repeat, treat it as inconclusive rather than selecting the result that best fits your expectation.

Magnetometer app versus metal detector

The terms are sometimes used loosely, but a magnetometer and a dedicated metal detector do not necessarily work the same way. A magnetometer measures magnetic fields. A metal detector is designed to respond to metal through its sensing system, and its results depend on its design and the material being sought. A phone’s magnetometer should not be treated as a replacement for professional locating equipment.

QuestionMagnetometer app
What does it sense?Magnetic-field changes at the phone’s sensor.
Can it identify a material?No. A reading alone does not identify the source.
Can it find every metal object?No. Non-magnetic metals may not produce a useful magnetic response.
Is it suitable for safety-critical locating?No. Use purpose-built equipment and qualified methods where safety depends on the result.

Tips for getting a more useful reading

  • Remove likely interference: A magnetic case, mount, or accessory can affect readings close to the phone’s sensor.
  • Compare rather than guess: Record what the display does at a baseline point and repeat the same movement.
  • Move slowly: A gradual approach makes it easier to notice where a change begins.
  • Keep expectations realistic: Sensor response is not a precise map of an object’s location, size, depth, or composition.
  • Use the right tool for the job: Do not rely on a phone reading to locate hidden services or make decisions that could cause injury or property damage.

When is an iPhone magnetometer app useful?

A magnetometer app is useful for learning how magnetic fields affect a phone’s compass, checking whether a nearby magnet appears to influence a reading, and making simple comparisons between locations. It can also be an accessible way to explore the magnetic environment around familiar objects. Its value lies in showing a sensor response, not in making a definitive diagnosis.

For dependable results, define the question narrowly: “Does the reading change when I move closer to this suspected magnetic source?” is more answerable than “What is behind this wall?” Use a consistent method, repeat the check, and treat the outcome as a clue. For angle-based physical alignment rather than magnetic-field checks, the iPhone angle-measurement guide offers a separate approach; you can also explore Level Tool.

Promotional banner