Can Your Smartphone Detect Metal? How It Works
In this article
Yes, a smartphone can detect metal, but only in a limited way: it uses its magnetometer (the sensor that powers the compass) to notice nearby ferrous metals like iron and steel, which distort the Earth's magnetic field. It cannot detect gold, aluminum, copper, or other non-magnetic metals, and it is not a substitute for a real metal detector.
What Is a Magnetometer and Why Does a Phone Have One?
Every modern smartphone contains a magnetometer, a tiny solid-state sensor that measures the strength and direction of magnetic fields. Its primary job is to help the phone figure out which way it is pointing, so navigation apps can show a compass arrow and so the phone can orient maps correctly. The same sensor also supports features like augmented-reality apps that need to know the phone's heading.
The magnetometer reports three values: the magnetic field strength along the X, Y, and Z axes. From these, the phone calculates a total field strength and a direction. Earth's magnetic field is roughly 25 to 65 microteslas (µT) depending on where you are, and the phone's sensor is sensitive enough to detect small changes caused by nearby magnetic objects.
How a Smartphone Detects Metal
When a ferrous metal object—something containing iron—comes close to the phone, it distorts the local magnetic field. The magnetometer picks up this distortion as a change in the field strength or direction. Metal-detector apps read the magnetometer data and display it as a number, a graph, or a beep that gets faster as the field changes.
To try it, you do not need a special app; you can use the phone's built-in compass app if it shows a numeric field strength, or install a free magnetometer app from the official app store. The steps are simple:
- Open the app and note the baseline reading—the total magnetic field strength in microteslas (µT) with nothing nearby.
- Slowly bring the phone close to the object you want to test, keeping the phone flat and moving it steadily.
- Watch for a change in the reading. A ferrous object will typically cause a jump of several µT, and the app may sound an alarm or vibrate.
- Move the phone away and confirm the reading returns to the baseline.
Because the sensor is small and the effect is local, you need to get within a few centimeters of the object for a clear reading. The detection range is roughly 5–10 cm for a small screw or nail, and up to about 20 cm for a larger steel plate, depending on the app's sensitivity and the object's size and orientation.
Which Metals Can a Phone Detect?
The magnetometer responds to ferromagnetic materials—iron, nickel, cobalt, and some alloys like steel. It does not respond to non-magnetic metals such as aluminum, copper, brass, gold, silver, or lead. That means a phone can find a nail in a wall but not a gold ring or a copper pipe.
Some apps claim to detect all metals by measuring changes in capacitance or by using the phone's electromagnetic field from the speaker or antenna, but these methods are unreliable and not supported by the phone's hardware. The only sensor with real metal-detection capability is the magnetometer, and it is limited to magnetic metals.
Common Problems and Limitations
Several factors can make smartphone metal detection frustrating:
- Phone case and accessories: Magnets in cases, car mounts, or wallet attachments can overwhelm the sensor. Remove magnetic accessories before testing.
- Electronic interference: Speakers, motors, and power supplies generate magnetic fields that can mask the object you are trying to detect.
- Sensor calibration: The magnetometer may need calibration. Most compass apps include a calibration step—usually moving the phone in a figure-eight pattern—and skipping it leads to inaccurate readings.
- App quality: Many free apps are simplistic and show only a raw number. A good app displays a baseline, a graph, and a clear alert when the field changes.
- Depth: The sensor cannot detect metal buried deep in soil or hidden behind thick walls. It is a surface-level tool.
A common misconception is that a phone can find studs or pipes in a wall like a professional stud finder. In reality, the magnetometer can sometimes detect the nails or screws holding drywall to studs, but it cannot reliably locate the stud itself or non-magnetic pipes.
How to Choose a Metal Detector App
When selecting an app, look for these features:
- Numeric field strength display in microteslas, not just a vague meter.
- Baseline reset so you can zero out the background field.
- Audio or vibration alert that triggers when the field changes beyond a threshold.
- No unnecessary permissions—a magnetometer app should not need access to your contacts or location.
- Positive reviews that mention accurate readings and no crashes.
Stick to apps from the official Google Play Store or Apple App Store. Avoid sideloaded APKs, which can contain malware and often make exaggerated claims.
Smartphone vs. Dedicated Metal Detector
A dedicated metal detector uses a search coil that generates an electromagnetic field and detects eddy currents in metal objects. It can find metals at depth, discriminate between types of metal, and cover a wide area quickly. A smartphone magnetometer is passive—it only measures existing magnetic fields—and has a range of centimeters. For serious treasure hunting or construction work, a dedicated detector is the right tool. For a quick check whether a screw is magnetic or for a science demonstration, a phone is fine.
Safety and Accuracy Notes
Do not rely on a smartphone to detect live electrical wires, gas pipes, or structural hazards. The magnetometer is not a safety device. If you are drilling into a wall, use a proper stud finder with electrical and metal detection modes, and follow the manufacturer's instructions. Also, keep in mind that magnetic fields from the phone itself (speaker, vibration motor) can cause small fluctuations; hold the phone still and away from other electronics for the most stable reading.
Frequently Asked Questions
Can a smartphone detect gold?
No. Gold is non-magnetic, so it does not affect the magnetometer. A phone cannot detect gold, silver, copper, or aluminum.
Why does my phone's compass jump when I bring a magnet near it?
The magnetometer is sensing the magnet's field, which is much stronger than Earth's. This is normal and shows the sensor is working.
Do I need to calibrate my phone before using a metal detector app?
Yes, calibration improves accuracy. Most compass apps offer a calibration routine; follow it before testing.
Can a phone detect metal through a wall?
Only if the metal is very close to the surface and magnetic. Thick walls or deep objects will not be detected.
Is there a built-in metal detector on iPhones?
No. iPhones have a magnetometer for the compass, but no built-in metal detector app. You can use third-party apps from the App Store that read the magnetometer.
Will a magnetic phone case interfere with metal detection?
Yes. Magnets in cases or mounts can saturate the sensor. Remove them before testing.