Home › Device & Internet Tests › Magnetometer Test

Magnetometer Test

Check your phone's magnetic sensor and measure the magnetic field around you in microtesla (µT). Tap Start, then bring a magnet, a steel tool or a speaker close to the phone: the gauge, X/Y/Z values and live graph react instantly, and a beep sounds when the field rises above your threshold.

Last updated:

Tap Start magnetometer on an Android phone (Chrome), or try the demo.
Total field strength|B| = √(x² + y² + z²)
–µT
= – gauss · Earth's field is 25–65 µT
X–
Y–
Z–
Metal detectorIdle
Change from baseline–
Baseline: not set (set automatically 1 s after start, away from metal).
Min–
Max–
Average–
Heading*–
Dip angle*–
Sample rate–

* Heading and dip angle are calculated from the field and are only meaningful with the phone lying flat, screen up.

Live graph (last 15 s)|B| X Y Z
Advertisement
Advertisement

How to use the Magnetometer Test

  1. Open the page in Chrome on an Android phone and tap Start magnetometer. If it says the API is missing, enable chrome://flags/#enable-generic-sensor-extra-classes and relaunch Chrome.
  2. Hold the phone still for a second, away from metal: the tool averages the reading as your baseline (Earth's field, usually 25–65 µT).
  3. Bring a magnet or metal object close to the phone and watch the total field, the axis bars and the graph rise.
  4. Set the beep threshold with the slider; the phone beeps faster and higher as the field change grows.
  5. Sweep slowly over a wall or table to locate hidden screws, studs, pipes or magnets, and tap Set baseline here whenever you move to a new spot.
  6. Download CSV to keep the raw X, Y, Z and total readings.

What the magnetometer measures

A phone's magnetometer is a tiny three-axis Hall-effect or magnetoresistive sensor. It measures the magnetic flux density along the phone's three axes: X points to the right edge of the screen, Y to the top edge and Z out of the screen towards you. The browser reports each axis in microtesla (µT), and this page combines them into the total field strength:

|B| = √(x² + y² + z²)

Because |B| is the length of the field vector, it does not depend on how the phone is turned. That is why the metal detector compares the total to a baseline: rotating the phone barely changes it, but a nearby magnet or piece of steel does. With the phone lying flat, the page also derives a heading of atan2(−x, y) (the direction the top of the phone points, clockwise from magnetic north) and the dip angle atan2(−z, √(x² + y²)), how steeply the field points into the ground.

Typical magnetic field strengths

SourceTypical flux densityIn gauss
Earth's field near the equatorabout 25–35 µT0.25–0.35 G
Earth's field in the USA and Europeabout 45–60 µT0.45–0.6 G
Earth's field near the magnetic polesup to about 65 µT0.65 G
Steel screw, nail or tool a few cm awaya change of roughly 2–50 µT0.02–0.5 G
Fridge magnet held close to the phoneoften several hundred µT or moreseveral G
Small neodymium magnet touching the phonecan exceed the sensor's range (often ±1,000–5,000 µT)10–50+ G

Earth's field values follow the World Magnetic Model; exact values depend on your location. Readings close to strong magnets depend heavily on distance, because a magnet's field falls off roughly with the cube of the distance.

Tips for finding metal and magnets

  • Find the sensor first: the magnetometer usually sits near the top of the phone. Move a small magnet around the back of the phone and watch where the reading peaks; sweep with that part of the phone.
  • Re-set the baseline often: buildings, cars and furniture have their own steel. Tap Set baseline here at each new spot so only local changes trigger the beep.
  • Keep the orientation fixed while sweeping a wall for screws or studs; a small calibration offset can otherwise look like a signal.
  • Use a low threshold (3–8 µT) to find screws behind drywall, and a higher one (20–50 µT) when you only want strong magnets or speakers.
  • Remove magnetic cases and mounts: wallet cases with magnetic clasps and MagSafe-style accessories shift every reading.
  • Electrical wiring carrying AC current creates a 50/60 Hz field that is too fast and weak for most phone sensors, so do not rely on this test to locate live wires.

Frequently asked questions

What is a normal magnetometer reading?

Away from metal, a phone should read the Earth's magnetic field: about 25 to 65 µT in total, depending on where you are (roughly 50–55 µT in most of the USA and Europe, lower near the equator, higher near the poles). Values far outside this range with nothing nearby usually mean the sensor needs calibrating, or there is a magnetic case, magnet or steel structure close by.

Why does it say the Magnetometer API is not available?

Web pages can only read raw field strength through the Generic Sensor Magnetometer API, which Chrome on Android offers behind the flag chrome://flags/#enable-generic-sensor-extra-classes. Safari on iPhone, Firefox and desktop browsers do not provide it. Without it, the page can still show a compass heading from orientation events, but not microtesla values.

Can my phone really work as a metal detector?

Only for magnetic (ferrous) metal and magnets at short range. Steel screws, nails, iron pipes, tools and speaker magnets change the field noticeably within a few centimetres. Non-magnetic metals such as gold, silver, copper and aluminium do not affect a magnetometer, so it cannot find them like a real coil-based metal detector.

What is the difference between µT and gauss?

Both measure magnetic flux density. 1 gauss = 100 microtesla (µT), so the Earth's field of about 50 µT equals 0.5 gauss. The tesla is the SI unit; gauss is the older CGS unit still used on many magnets and gauss meters.

How do I calibrate my phone's magnetometer?

Move away from metal and electronics, then slowly wave the phone in a figure-eight pattern several times, rotating it around all axes. Android and iOS use this movement to estimate the sensor's offsets. Afterwards the total field should stay roughly constant while you rotate the phone.

Why does the total change when I rotate the phone?

With a well-calibrated sensor, the total |B| stays almost the same in every orientation; only X, Y and Z swap values. If the total swings by more than a few µT while you rotate the phone in open space, the hard-iron offset is not fully corrected: calibrate with a figure-eight motion, or use the baseline and keep the phone in one orientation while detecting.

Is it safe to hold a magnet near my phone?

Small household magnets are generally harmless to modern phones with flash storage, but strong neodymium magnets can temporarily disturb the compass, magnetic sensors and camera stabilisation until they are recalibrated. Do not hold strong magnets against the phone for long, and keep them away from cards with magnetic stripes.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Online CompassUse your phone as a compass with heading in degrees and cardinal points.Gyroscope TestCheck your phone's gyroscope with live rotation readings, a 3D phone model and graphs.Accelerometer TestCheck your phone's accelerometer and gyroscope with live values, graphs and a tilt ball.Light Meter (Lux Meter)Measure light in lux and foot-candles with your phone's light sensor or camera, plus room guides.Magnetic Declination CalculatorFind magnetic declination, inclination and field strength for any place and date (WMM2025).Internet Speed TestMeasure download, upload, ping and jitter.What Is My IPSee your public IP address and location.Typing Speed TestMeasure your typing speed in WPM.Reaction Time TestTest your reflexes over 5 rounds and see your average and percentile.Click Speed TestTest your clicks per second (CPS) in 1 to 60 second modes.Jitter Click TestMeasure jitter clicking CPS, peak speed and click consistency.Kohi & Butterfly Click TestKohi, butterfly and drag click CPS tests with left/right click stats.Refresh Rate TestCheck your monitor's refresh rate in Hz and spot dropped frames.Aim TrainerPractice clicking targets and measure accuracy and reaction time.Spacebar CounterHow fast can you press space? Timed spacebar clicker test.Microphone TestTest your microphone with a live level meter.Webcam TestCheck your webcam, resolution and frame rate.Keyboard TesterTest every key and check for ghosting.Mouse TesterTest clicks, double clicks and the scroll wheel.Dead Pixel TestFind dead or stuck pixels on your screen.Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.Gamepad TesterTest controller buttons, triggers, stick drift and vibration in your browser.What Is My Screen ResolutionSee your screen resolution, viewport, pixel ratio, colour depth and display features.Vibration TestTest your phone's vibration motor with short, long, SOS, heartbeat and custom patterns.Battery Status CheckerCheck your battery level, charging state and time to full or empty.What Are My GPS CoordinatesSee your latitude and longitude in decimal and DMS, with accuracy and maps.Bubble LevelTurn your phone into a spirit level with surface and bar modes.Screen FlashlightTurn your screen into a bright white or coloured light that stays awake.Ring LightTurn your screen into a ring light or fill light with adjustable color temperature.Online RulerAn actual-size on-screen ruler in cm, mm and inches, calibrated with a credit card.Online ProtractorMeasure any angle on screen or in a photo with a draggable 360° protractor.Device Pixel Ratio CheckerSee your device pixel ratio, CSS viewport, physical resolution and screen PPI live.Browser Feature CheckerTest which Web APIs, CSS features and JavaScript syntax your browser supports.Local Storage InspectorView, edit and clear the cookies, localStorage and other data this site stores in your browser.FPS TestMeasure your browser's live frame rate, 1% lows and frame times, and compare 15-240 FPS.GPU TestSee your graphics card, WebGL and WebGPU support and limits, and run a quick GPU benchmark.Mouse DPI TestFind your mouse's real DPI by moving it a measured distance, with multi-run averaging.Color Blindness TestQuick 14-plate dot test that screens for red-green and blue-yellow color vision deficiency.Typing Test with CertificateTake a timed typing test and download a printable certificate with your net WPM and accuracy.Typing Test for KidsBig, friendly typing test for ages 6–12 with simple words, a key helper, stars, WPM and accuracy.Words Per Minute CalculatorWork out typing WPM (gross, net, CPM, accuracy) or your reading and speaking speed.Frame Skipping TestLight one box per frame and photograph it to catch skipped frames after overclocking a monitor.Ghost Touch TestLeave your screen untouched and log every phantom touch with a heatmap and timeline.Projector Test PatternFull-screen projector focus grid, keystone lines, color bars and 16:9, 4:3 and 2.35:1 frames.Online Serial PlotterPlot live numbers from Arduino, ESP32 or any USB serial device as a multi-line chart.Bluetooth Device ScannerFind nearby Bluetooth LE devices and read their services, characteristics and battery level.Keyboard Layout DetectorFind out if your keyboard is QWERTY, AZERTY, QWERTZ, Dvorak or Colemak and see its key map.Mouse Acceleration TestMove the same distance slowly and quickly to detect OS mouse acceleration with raw input.Touch Screen Accuracy TestTap shrinking targets to measure touch offset error per screen region, with a heatmap.Trackpad Gesture TestTest pinch zoom, two-finger scroll, swipes, force click and wheel delta modes live.Number Memory TestRemember a number that grows one digit each level. Track your digit span and best score.CPU BenchmarkTest your processor's single-thread and multi-thread speed in the browser and compare scores.Ping TestCheck your latency, jitter and packet loss to Cloudflare, Google and other servers live.MIDI Keyboard TesterTest a MIDI keyboard or controller: see notes, velocity, CC knobs and pedals live.Headphone TestTest headphones: left/right channels, 20 Hz–20 kHz sweep, bass, treble, phase and 3D sound.Monitor TestFull-screen monitor test patterns: uniformity, banding, gamma, sharpness, black level, ghosting.Browser Fingerprint TestSee how unique your browser is: canvas, WebGL, audio, font and screen fingerprints, run locally.WebRTC Leak TestCheck if WebRTC exposes your real public or local IP address, even behind a VPN.IPv6 TestTest whether your connection supports IPv6, see your IPv4 and IPv6 addresses and check any site.Sequence Memory TestWatch squares flash in a 3x3 grid and repeat the growing sequence. Track your best level.Visual Memory TestRemember which squares light up as the grid grows. Three lives, levels and score history.Pen Pressure TestTest drawing tablet and stylus pressure, tilt and twist live, with a pressure graph.Ad Blocker TestCheck if your ad blocker works: bait ad elements and ad/tracker requests, with every result listed.Audio Latency TestMeasure Bluetooth and headphone audio delay in ms with a tap test, mic loopback and sync slider.Backlight Bleed TestFull-screen black and dark gray screens to check backlight bleed, IPS glow, clouding and blooming.Browser Notification TestCheck notification permission, request it and send test notifications with custom options.Browser Storage TestSee your browser's storage quota and usage, and test localStorage, IndexedDB and cookie limits.Chimp TestMemorize where the numbers are, then click them in order after they hide. 3 strikes.
See all 129 Device & Internet Test Tools →