Using your phone as a spirit level
Every modern phone contains an accelerometer, and at rest the only acceleration it feels is gravity. Point that measurement at the problem and you have a level: the phone works out which way down is and reports how far your surface tilts away from it.
Gravity is the reference, not the phone
A three-axis accelerometer reports how strongly gravity pulls along each axis. Lay the phone flat and almost all of it lands on one axis; tip the phone and the pull redistributes, and the angle follows from the ratio between the axes. Nothing is calibrated against the room — the reference is the planet, which is why a level works the same in a basement and on a balcony.
Zero it before you trust it
Cameras bulge, cases are uneven, and the sensor itself is soldered a fraction of a degree off. Put the phone on a surface you already know is flat, tap the zero button, then flip the phone end for end and check that the reading mirrors instead of drifting. That offset is stored and subtracted from every later measurement, which turns a rough tilt sensor into something you can hang a shelf with.
Where a bubble still beats a phone
Accelerometers also feel movement, so anything that vibrates — a running machine, a windy scaffold, your own pulse through a shaky hand — muddies the reading. They are also short: a phone measures the 15 cm it is resting on, not the two-metre run of a floor. For long spans, rest the phone on a straight batten and level the batten instead.
Frequently asked questions
How accurate is a phone level?
After zeroing, a few tenths of a degree on a still surface is realistic. That is fine for shelves, pictures, appliances and furniture, and not fine for machine setup or optics.
Why does the reading change when I flip the phone?
That difference is the sensor's built-in offset. Zero on a flat surface first; a good app subtracts the offset so both orientations agree.
Does a phone case affect it?
Yes, and thick or bumpy cases are the most common cause of a stubborn error. Zero the phone with the case you actually use, or take the phone out of the case entirely.
Sixteen tools, one app. TOOLBOX turns the sensors already inside your phone into a level, an inclinometer, a screen ruler, a caliper, a compass, a decibel meter and a strobe tachometer. It runs in the browser, with no account and nothing to install.
Open TOOLBOX