Muon Tracker · iPhone & iPad · iOS 16.6 or later

Cosmic rays hit your phone.
Watch them.

About once a second, a muon born ten kilometres up when a cosmic ray struck the atmosphere passes straight through the glass you are reading this on. Muon Tracker turns the screen into a detector of them: each arrival drawn as a track at its angle, with its energy, counted and logged.

It is a simulation, not a sensor, and it says so. What makes it worth having is that the simulation is honest: the rate follows your altitude, latitude, the time of day and the season, and the angles and energies follow the distributions physicists measure.

Version 1.0 · 597 KB · Works entirely offline

No account · No analytics · No tracking · Nothing collected

Muon Tracker on an iPhone: a near-black screen crossed by thin cyan tracks at various angles, a cyan readout at the top left with the event number, energy in GeV and angle, the detector area in cm², the muon rate per second and the flux per square metre per second, the latitude, longitude and altitude at the top right, and a row of outlined buttons at the bottom: Data, Plot, Stop, Persistence: On, Physics, Info

A particle that should not reach the ground

Cosmic rays, mostly protons flung across the galaxy, hit nuclei in the upper atmosphere and shatter into showers of short-lived particles. Among them are pions, which decay within nanoseconds into muons: heavy cousins of the electron, two hundred times its mass, living on average just 2.2 microseconds before they too decay.

At that lifetime a muon should travel about 660 metres and vanish. Yet they arrive at sea level at roughly one per square centimetre per minute, because they move so close to the speed of light that, from our frame, their clocks run slow. Every track in the app is a small demonstration of special relativity, and the Physics page inside explains it in full.

The screen is the detector

The app measures the physical area of your screen in square centimetres and treats it as a detector of that size. Muons arrive as a random process at the expected rate, each with an angle and an energy drawn from the physics. Hold the phone upright and they come in as slanted tracks; lay it flat and they pierce the glass as points.

The detector with Persistence on: several cyan tracks at different angles fading over the dark screen, one brighter than the rest
Persistence on: tracks linger for five seconds, so you see the density.
The detector with Persistence off, caught at the instant of a hit: one cyan track slanting across the whole screen, the background flushed dark green for the flash, the readout showing event 16 at 3.61 GeV and 27 degrees, and Persistence: Off in the controls
Persistence off: each muon is a single flash, there and gone.
Event, energy, angle
Top left: the running count of arrivals, and for the latest one its energy in GeV and its zenith angle in degrees. A cyan dot blinks with every hit.
Detector, rate, flux
The screen area in square centimetres, the number of muons per second over the last ten seconds, and the same figure scaled to a square metre, which is how the physics literature quotes it.
Latitude, longitude, altitude
Top right, from the phone's location while the app is open. Altitude is what matters: the rate roughly doubles every four kilometres up. Without a fix the app assumes sea level.
Tracks that fade
With Persistence on, up to two hundred tracks stay on screen and fade over five seconds, so the eye can read the angular spread. Off, each muon is a 200 millisecond flash.
Start and Stop
Pause the count to study the screen; the rate reads zero while it is stopped and the log keeps what it had.

The model underneath

The rate starts from the textbook figure of one muon per square centimetre per minute at sea level, and is corrected for where and when you are. Each arrival is then given a zenith angle and an energy from the distributions below.

Altitude
Flux grows exponentially with height, with a 6 km scale: about 1.7 times at 3,000 m and 2.7 times at 6,000 m. This is the one you can change by hand.
Latitude
The Earth's magnetic field deflects more of the primary cosmic rays near the equator, so the rate is a tenth lower there than at the poles.
Hour and season
Small modulations of a few percent, peaking in the early afternoon and in the northern summer, following the solar cycle of the atmosphere.
Angle
A cos²θ distribution from the zenith, with an extra penalty for slanted paths that must cross more air.
Energy
Around 4 GeV at sea level, one GeV more per kilometre of altitude, and less for muons arriving at a slant.

Arrival rate

rate = 1 /cm²/min · eh / 6000 m · flat · fhour · fseason · area

The expected number per tick is fed to a Poisson draw a thousand times a second, so arrivals cluster and thin out the way real counts do, rather than ticking like a metronome.

Angle and energy

P(θ) ∝ cos²θ · e−h / (10 km · cos θ)E ≈ (4 GeV + 1 GeV/km · h) / (2 − cos θ)

Muons come mostly from overhead. The more slanted the path, the more atmosphere it crosses, and the fewer survive. Energies sit around 4 GeV at sea level and rise with altitude.

Log it, plot it, take it up a mountain

Three panels fold out from the bottom of the detector. None of them stops the count.

The Data panel open over the detector: a Muon Events Log in a cyan-bordered box with a share icon, listing events newest first with time to the millisecond, the arrival angle in degrees and the energy in GeV, in a monospaced font

Data

Every event with its time to the millisecond, angle and energy, newest first. The share button exports the full session as a CSV file: event, date, time, arrival angle, energy. Up to a hundred thousand rows.

The Plot panel: a cyan bar chart titled Muon angle distribution, with bars across the angle range from minus ninety to ninety degrees tallest around zero

Plot

A histogram of arrival angles in four degree bins, normalised to the vertical bin. Leave it running and the familiar bell of cos²θ emerges from the noise.

The Prefs panel: a cyan slider labelled Altitude with a reset button, letting the altitude be set from zero to ten thousand metres

Prefs

Override the altitude from the GPS with a slider from sea level to ten thousand metres, and watch the rate respond. Reset returns to the measured altitude.

A classroom experiment in a pocket

Set the altitude to 3,000 metres and watch the rate climb by two thirds; set it to zero and watch it fall back. Open the plot after a few minutes and the histogram has taken the cos²θ shape on its own, out of random draws. Export the CSV and the class can check it in a spreadsheet.

The physics, inside the app

The Physics button opens a short, referenced account of what muons are, how the atmosphere makes them, why relativity lets them reach the ground, and what every number on the readout means. Nothing on this page is needed to use the app.

Always from above

The app reads the gravity vector from the motion sensors and rotates every track so that muons keep coming from the sky whichever way the phone is turned. Rotate the device slowly and the tracks swing to stay vertical in the world, not on the screen.

Past seventy degrees of tilt, with the screen facing up, the view switches: a muon crossing a horizontal detector leaves a point, not a line, and the screen shows pulsing dots instead of tracks. Tilt it back and the tracks return.

Sized to your device

The detector area is derived from the model: a 6.1 inch iPhone is a smaller target than a 12.9 inch iPad, and sees proportionally fewer muons.

Random, like the real thing

Arrivals are Poisson-distributed. Some seconds pass with nothing, others bring three at once. The rate shown is the average over the last ten seconds.

CSV you can work with

The exported log has a header row and plain decimal numbers, ready for a spreadsheet or a Python notebook.

Referenced

The Physics page links to the background reading, so a curious student can go on from the app to the literature.

The Physics of muons page in the app: cyan headings on a dark green-black gradient, Fundamental Properties of Muons, Atmospheric Production Mechanisms, Relativistic Propagation and Ground-Level Penetration, with paragraphs of explanation beneath each

Nothing leaves the phone

Muon Tracker has no network code at all. The only permission it asks for is your location while the app is open, and only to know your altitude and latitude for the rate. The App Store privacy label reads "Data Not Collected".

No connection, ever

The app makes no network requests. There is no server, no account, no update check, nothing to phone home to.

Location, used on the spot

Latitude, longitude and altitude feed the rate calculation and are shown on screen. They are never stored or sent. Deny the permission and the app runs at a default position.

Motion, used on the spot

The gravity vector from the motion sensors orients the tracks. Nothing is recorded.

Your log is yours

The CSV lives in the app's own documents folder and is cleared at each launch. It leaves the phone only when you share it.

Read the privacy policy

Who it is for

Physics teachers

A live demonstration of cosmic rays, relativity and Poisson statistics that every student can run on their own desk, with data to take home.

Students

Vary the altitude, collect a histogram, export it, fit it. A complete small experiment, with the model written out so it can be questioned.

The curious

For anyone who has read that cosmic rays pass through us all the time and wanted to see, roughly, what that looks like.

Travellers

Open it on a mountain pass, or in a plane at cruising altitude, and watch the counter run several times faster than at home.

Muon Tracker was released in May 2025 and is version 1.0. The whole app is smaller than a photograph.

One just went through. And another.

Muon Tracker is an educational simulation. A phone has no sensor that can register a muon; the events shown are generated at random, at rates and with angles and energies taken from published models of the atmospheric muon flux, so that they are statistically faithful to what a real detector of the same size would see at your position. They are not measurements of real particles, and the exported data should not be presented as such. Energies, rates and the altitude dependence are simplified for teaching and can differ from precise measurements by tens of percent.

Legal · arpastore.com

Privacy policy

Last updated: 18 October 2026