How to Calibrate Your Phone's Spirit Level App
Straight out of the box, most phones read a degree or two off level. That is normal. Every accelerometer chip carries a small factory offset, so the phone thinks flat is a bit tilted. You fix it with one calibration step that takes about half a minute. After that, a good phone reads to within a couple of tenths of a degree. Here is how to calibrate Spirit Level Pro properly, and why I recalibrate every time I get to a new job.
- An uncalibrated phone can read a degree or more off level. Calibrating brings it down to a couple of tenths.
- A glass dining table is the best calibration surface most people have at home.
- Spirit Level Pro stores calibration in localStorage, so it holds between sessions until you recalibrate.
- The 4-point reversal test checks calibration quality without needing a reference instrument.
- Recalibrate after you drop the phone, after a big temperature change, or when you start a new job.
Why does a phone spirit level need calibration?
Every accelerometer chip leaves the factory with a small manufacturing offset built in. The offset is systematic. It shifts every reading by the same fixed amount in the same direction. That makes a slight slope look dead level, or a level surface look tilted. It is the same wrong answer every time, which is exactly why it is so easy to correct.
Think of it as a zero-point error. If your bathroom scale read 5kg with nothing on it, every weight you put on it would come out 5kg too high. An accelerometer with a 1.5° offset does the same thing to every angle. The reading is steady and repeatable. It is just wrong by a fixed amount.
This is not a defect. It is normal variation from how the chips are made. The chip designers leave the correction to software. The app measures the offset once on a flat surface, stores it, and subtracts it from every reading after that. Skip the step and the sensor is only good for rough comparisons. Do it once and the phone becomes accurate enough for real work.
What does calibration actually do?
Calibration in Spirit Level Pro is simple. When you tap Calibrate, the app reads the current pitch and roll from the accelerometer. It saves those numbers as offsets in your browser's localStorage, under the keys calibrationPitch and calibrationRoll. From then on, it subtracts those offsets from every raw reading before it shows you an angle.
The idea rests on one assumption: you calibrate on a surface you know is flat. Whatever angle the sensor reports there is the offset. Subtract it and the flat surface reads 0.0°. Every other surface then reads its true angle relative to flat. The calibration holds across browser sessions, so you do not repeat it every time you open the app.
This works because the offset is stable over short periods. It does not change when you open another app, restart the phone, or lock the screen. It can drift over days or weeks from temperature swings or a knock. That is why I treat a fresh calibration at the start of a job as routine, not a one-time setup.
Place your phone on a flat surface, open the app, and tap Calibrate. Takes about 30 seconds. Works on any phone without a download.
Open Spirit Level ProWhich surface should you use for calibration?
Your calibration is only as good as the surface under the phone. Calibrate on something that sits 0.3° off level and every reading after that is 0.3° off. So find the flattest thing you have. Here is how the common options stack up.
| Surface | Typical Flatness | Rating | Notes |
|---|---|---|---|
| Precision granite surface plate | ±0.0001"/ft | Best possible | Professional metrology standard. Cost $100-$500. Overkill for most tasks. |
| Glass dining table | ±0.05° | Excellent | Float glass is manufactured very flat. Best free option in most homes. |
| Kitchen countertop (stone or laminate) | ±0.1° | Very good | Avoid near joins or seams. Check multiple spots to find the flattest area. |
| Ceramic tile floor | ±0.1-0.3° | Good | Varies with grout lines and installation quality. Use a large tile, away from grout. |
| Concrete floor | ±0.2-0.5° | Acceptable | Poured concrete varies widely. Find a flat zone with a physical level before using. |
| Wooden floor | ±0.3-1.0° | Not recommended | Wood swells and shrinks with humidity. Individual boards vary. Avoid for calibration. |
| Cardboard box lid | Highly variable | Avoid | Flexes under phone weight. Readings will not be stable. |
Step by step: how to calibrate Spirit Level Pro
The whole thing takes about 30 seconds. Follow the steps in order. The two mistakes I see most are calibrating on a dirty surface, and tapping Calibrate before the reading has settled.
-
Find your reference surface
Pick the flattest thing you have: a glass table, a kitchen counter, or a real spirit level lying flat if there is one to hand. Wipe it clean. A single bit of grit under the phone is enough to tilt it.
-
Take the phone case off
A thick rubber case on a phone with a curved back can rock the phone a fraction of a degree. Calibrating with the case on cancels that out, but only while the same case stays on. For fussy work, calibrate without the case and measure without it too.
-
Open Spirit Level Pro and allow sensor access
Open spiritlevel.pro in your browser and allow motion sensor access when it asks. On iOS you get a permission prompt the first time. On Android it usually grants access on its own.
-
Set the phone flat on the surface, screen up
Put the phone down gently on the reference surface. Do not hold it. On thin phones the pressure from your hand can flex the body just enough to throw off the reading.
-
Wait about 3 seconds for the reading to settle
The app smooths the sensor data, so the number takes a second or two to settle once the phone stops moving. Watch the angle display and wait for it to stop drifting. Rushing this is the most common calibration mistake.
-
Tap Calibrate
Tap Calibrate in the app. It reads the current pitch and roll and saves them in localStorage as
calibrationPitchandcalibrationRoll. From here on, it subtracts those offsets from every reading. -
Check the result
The display should now read 0.0° with the phone on the same surface. Slide it to another spot on that surface. It should still read close to 0.0°. If the number jumps, the surface is not evenly flat. Find a better spot.
How to calibrate for plumb mode
Plumb mode checks whether something is truly vertical. It is what you want for door frames, posts, walls, and fence posts. Calibrating for plumb works the same way as flat calibration, except you use a vertical reference instead of a horizontal one.
The hard part is finding something you trust to be vertical. A door jamb is usually fine in a newer house, but older homes have plenty of frames that have racked out of plumb over the years. The one reference you can always trust is a plumb bob. A weight on a string hangs true vertical by definition, whatever the building around it is doing.
To calibrate for plumb, hang a plumb bob or use another true vertical reference. Switch Spirit Level Pro to plumb mode. Hold the phone flat against the reference with the side edge touching it. Wait for the reading to settle, then tap Calibrate. The app keeps the vertical offset separate from the horizontal one, so calibrating for plumb does not disturb your flat calibration.
When should you recalibrate?
Calibration holds between sessions, but it does not last forever. Accelerometers drift a little with temperature, so a phone that comes out of a warm van into a cold garage needs a couple of minutes to settle before you recalibrate. That is the main thing to watch on site.
Recalibrate in these situations:
- After you drop the phone. A hard knock can stress the sensor housing and shift the zero point.
- After a big temperature change. Let the phone reach the ambient temperature, then recalibrate.
- At the start of a new job. Different sites mean different temperatures, so a fresh calibration on arrival is cheap insurance.
- After a system update that touches the sensors. Rare, but a driver change can shift the raw data the app sees.
- When readings look off. If a surface you know well is reading strange, recalibrate before you blame the surface.
How to verify your calibration is correct
Once you have calibrated, how do you know the calibration itself is good? Two checks cover it: compare against a physical level, or run the 4-point reversal test. The reversal test is a trick metrologists use to check precision levels with no external reference at all. It works on the geometry of rotation.
Cross-check with a physical level
If you own a decent bubble level, a long box level or a torpedo level, set it on the surface you calibrated on. If the bubble reads level and the phone reads 0.0° give or take a tenth, the calibration is good. If they disagree by more than two tenths, one of them is wrong. Move to another surface to work out which.
The 4-point reversal test
The 4-point reversal test lets you check your calibration with no reference instrument. It is the same method used to check granite surface plates and machinist levels. Here is how it goes.
- Place the phone on the surface in its normal orientation. Note the reading (should be ~0.0°).
- Rotate the phone 90° clockwise. Note the reading.
- Rotate another 90° clockwise (now 180° from start). Note the reading.
- Rotate another 90° clockwise (now 270° from start). Note the reading.
All four readings should land within a tenth of a degree of each other. If they do, your calibration is solid and the surface is genuinely flat. If they wander as you rotate, one of two things is happening: the surface is not flat and curves in one direction, or the sensor has an uneven error that calibration has not fully removed. Repeating the test on a second surface tells you which.
Frequently asked questions
How do I calibrate a spirit level app on my phone?
Set your phone flat on the flattest surface you have. A glass table or clean kitchen counter works well. Take the case off. Open Spirit Level Pro, wait two or three seconds for the reading to settle, then tap Calibrate. The app saves the current sensor offset and subtracts it from every reading after that. It takes about 30 seconds and takes the phone from a degree or more of error down to a couple of tenths.
How often should I recalibrate my phone spirit level?
Recalibrate at the start of each work session, and any time you move between very different temperatures. A phone that goes from a warm car into a cold garage needs a couple of minutes to settle before you recalibrate. Always recalibrate after you drop the phone. For casual jobs around the house, once per session is plenty.
What surface should I use to calibrate a spirit level app?
The best surfaces most people have are a glass dining table, a clean kitchen counter, or a machinist's surface plate if you own one. Stay off wooden floors, since wood swells and shrinks with humidity and the boards are never truly even. Avoid concrete unless you have checked a spot with a physical level first. Wipe any surface clean before you set the phone down.
Does calibrating a phone spirit level app really make a difference?
Yes, a big one. An uncalibrated phone can read a degree or more off level, which is enough to make a real slope look flat. After one calibration pass it reads to within a couple of tenths of a degree. Calibration is the single most useful thing you can do, ahead of buying a better phone or taking the case off. It costs nothing and takes 30 seconds.
The 30-second habit worth keeping
Calibration gives you more than any other single step with a phone level. Thirty seconds on a flat surface takes a tool that reads a degree or more off and turns it into one accurate to a couple of tenths. That is as good as a decent bubble level, and often better than the one in your toolbox once you allow for reading a small bubble by eye.
The routine is short. Find a flat surface, a glass table is ideal. Take the case off. Set the phone down gently. Wait for the reading to settle. Tap Calibrate. Check it reads 0.0°. That is it. Do it at the start of each job and you have a tool you can trust for tile work, cabinets, drainage falls, and just about every job around a house.
The 4-point reversal test adds a minute and tells you whether the surface itself is worth trusting. Run it a few times while you are learning, then go by feel. A glass table you have checked once does not need checking again every time.