How it's calculated
The phone's motion sensor gives the direction of gravity. Flat on a surface, the tilt is the angle between gravity and the screen's normal; on an edge, it is the rotation around the screen. Pitch = tan(angle) × 12, grade = tan(angle) × 100. Back from pitch: angle = arctan(pitch ÷ 12).
Worked example. A deck board reads 2.0°: tan(2°) × 12 = 0.42, so it falls about 0.035 in per inch, or 0.42 in over a foot (3.5% grade). For drainage on a patio, 1/4" per foot is about 1.19°.
| Angle | Pitch | Grade | Rise per foot |
|---|---|---|---|
| 0.5° | 0.1/12 | 0.9% | 0.1" |
| 1° | 0.21/12 | 1.7% | 0.21" |
| 1.19° | 0.25/12 | 2.1% | 0.25" |
| 2° | 0.42/12 | 3.5% | 0.42" |
| 5° | 1.05/12 | 8.7% | 1.05" |
| 10° | 2.12/12 | 17.6% | 2.12" |
| 14.04° | 3/12 | 25% | 3" |
| 18.43° | 4/12 | 33.3% | 4" |
| 22.62° | 5/12 | 41.7% | 5" |
| 26.57° | 6/12 | 50% | 6" |
| 30° | 6.93/12 | 57.7% | 6.93" |
| 33.69° | 8/12 | 66.7% | 8" |
| 36.87° | 9/12 | 75% | 9" |
| 45° | 12/12 | 100% | 12" |
Angle finder and inclinometer
The same reading works as an angle finder: stand the phone's edge on a rafter, a stair stringer or a handrail to read its angle, then read the pitch beside it. That is what an inclinometer does; a phone is accurate to a few tenths of a degree once zeroed on a known flat surface.
Set your zero
Phones are not perfectly flat: camera bumps and cases tilt them. Put the phone on a surface you know is level (or the surface you want to match), set zero there, and every reading after that is relative to it. In the Stud app the zero is kept for flat and edge use separately.
Spirit level vs phone level
A good 4 ft spirit level averages over its length and reads to about 0.5 mm per meter. A phone spans only a few inches, so it shows the local tilt. For long runs, set the phone on a straight board and read the board.
Questions
How do I use my phone as a level?
Open this page or the Stud app, lay the phone on the surface for the round bubble, or stand it on its long edge for a tube level. Centered and green means level.
Why does iPhone ask for permission?
Safari on iPhone asks before a web page can read the motion sensor. Tap Start level and allow it. Nothing is sent anywhere: the reading stays in your browser.
How accurate is a phone level?
Usually within a few tenths of a degree after you set zero on a known flat surface. Cases and camera bumps add error if you don't.
How do I convert degrees to roof pitch?
Pitch = tan(angle) × 12. 18.4° is a 4/12 pitch, 26.6° a 6/12, 45° a 12/12.
What angle is 1/4 inch per foot?
About 1.19°, a 2.08% grade: the common slope for patios and drains.
Related calculators
Formulas tested on the same cases as the Stud app. Professional review pending. How we check the math. Embed this calculator on your site: /embed/bubble-level/. Last checked 2026-11-23.