Free tool · Everyday tools
Bubble level
Lay your phone on a surface, press Start and watch the bubble move toward the high side. The page shows the tilt in degrees, as a percent grade and in millimeters per meter, and it works with no app.
- Free
- No sign-up
- Runs in your browser
- Sensors off
- Left to right
- –
- Front to back
- –
- Grade
- –
- Per meter
- –
A phone sensor is not a surveying instrument. Set zero on a surface you trust, and turn the phone around to check that it reads the same.
Slope converter3.49%2.00° is a grade of 3.49 percent
- Millimeters per meter
- 34.9
- Inches per foot
- 0.419
- As a ratio
- 1 in 29
- Over 1.2 m (4 ft)
- 41.9 mm
How to use the Bubble Level
- Open this page on a phone or tablet and press Start bubble level. If an iPhone asks to allow motion and orientation, allow it.
- Under How is the phone placed? choose Lying flat on a surface for a round bubble, or Upright, on its edge or against a wall for a horizontal vial.
- Read the large angle and the chip next to the bubble: Level means within 0.5 degrees, Almost level within 2.
- To check against a surface you trust, put the phone on it and press Set zero here. Clear zero goes back to true level.
- To turn an angle into a slope, type it under Convert a slope and pick degrees, percent grade or mm per meter.
Can I use my phone as a bubble level?
Yes, on any phone or tablet whose browser can read its motion sensors. This page asks the browser for the phone's orientation, the same angles a game uses to steer by tilting. The bubble moves toward whichever side is higher, as it does in a glass vial, and the big number is the total tilt from level.
Two ways of holding the phone are covered. Lying flat, the page shows a round vial and the tilt along both directions of the screen. Upright, against a wall or standing on one edge, it shows a horizontal vial and how far the phone is turned in the plane of its screen from the nearest horizontal or vertical line. The second view suits a picture frame, a shelf bracket or a door frame, where the phone is held against the thing being checked.
A laptop or desktop usually has no tilt sensor, so there the page cannot read anything. It says so after a moment instead of showing a made-up value, and the slope converter below the result still works.
How accurate is a phone bubble level?
Treat it as good enough for hanging a picture or setting up a shelf, and not as a surveying tool. The sensor inside a phone is not calibrated against a reference by you, a case or a magnet can shift the reading, and the number is smoothed over a few readings so the bubble does not jitter. I have not measured the error of any particular phone, and no source I opened gives one for phones in general, so this page quotes none.
The page uses two bands of its own. A tilt of 0.5 degrees or less shows as Level, and up to 2 degrees as Almost level. They are a rule of thumb for this page and not a standard. To see what they mean for real work, the table below turns an angle into the height difference it causes. A shelf 1.2 m long that reads 0.5 degrees off is 10.5 mm higher at one end, and at 1 degree the end is 20.9 mm higher.
| Angle | Grade | mm per meter | Inches per foot | Ratio |
|---|---|---|---|---|
| 0.5° | 0.87% | 8.7 | 0.105 | 1 in 115 |
| 1° | 1.75% | 17.5 | 0.209 | 1 in 57 |
| 2° | 3.49% | 34.9 | 0.419 | 1 in 29 |
| 3° | 5.24% | 52.4 | 0.629 | 1 in 19 |
| 5° | 8.75% | 87.5 | 1.050 | 1 in 11 |
| 10° | 17.63% | 176.3 | 2.116 | 1 in 5.7 |
How do I calibrate the bubble level?
Find a surface that you trust to be level, such as a stone worktop that a long spirit level agrees with. Lay the phone on it, press Set zero here, and every later reading is measured from that position. This removes a constant error of the phone, and of a case if you leave the case on.
To find out whether the error is constant, turn the phone through 180 degrees on the same spot and look at the reading again. A perfect sensor gives two readings that are equal and opposite, and any difference shows an offset. If the readings differ, keep the phone facing the same way as when you set zero, or take the case off and repeat. The zero lives only in the open page, so it is gone when you reload.
Set zero stores the position for the view you are in. If you set it lying flat and then switch to the upright view, press the button again there. Press Clear zero to throw it away.
Why does the bubble level not work, and why does my iPhone ask for permission?
Browsers give motion and orientation data only to secure pages. MDN documents a requestPermission() method on DeviceOrientationEvent that resolves with granted or denied, and iPhones and iPads want that question to come from a tap, which is why the page waits for the Start button. If you pressed Don't Allow, quit the browser from the app switcher and open the page again, or check the Motion & Orientation Access switch in the Safari settings.
On Android, Chrome sends the readings without a prompt, though battery saver or a site setting can switch them off. The page waits one and a half seconds for a first reading. If none comes, it stops and shows the likely causes. It also stops when the tab is hidden, so the sensors are not read in the background.
Nothing is sent anywhere. The angles are worked out in the page from the readings the browser hands it, and the numbers on screen exist only on your device.
How do I turn an angle into a slope for a ramp or a drain?
A slope is the tangent of the angle. At 2 degrees it is 3.49 percent, or 34.9 mm per meter, or about 1 in 29, meaning 1 unit of rise for every 29 units along. The converter on this page does it in both directions: type 2 percent and it gives 1.15 degrees, or type 10 mm per meter and it gives 0.57 degrees.
For a long run, as in a gutter or a patio, a grade in percent or mm per meter is easier to compare with a plan than an angle in degrees. Phone readings are rounded to a tenth of a degree, so for a shallow slope check the result against a long straightedge and a ruler before you pour or fix anything.
Use it with
- Sensor Test: test gyroscope, accelerometer, proximity.
- Webcam Test: check that the camera works.
- Screen Resolution Checker: show screen size and viewport.
Questions
Can I use my phone as a bubble level?
Yes, if the browser can read its motion sensors. Press Start, lay the phone flat and the bubble moves toward the high side, with the tilt shown in degrees.
How accurate is a phone bubble level?
Good enough for hanging a picture, not a surveying tool. This page calls 0.5 degrees or less level, a rule of its own. Set zero on a surface you trust to remove a constant error.
How do I calibrate it?
Put the phone on a surface you know is level and press Set zero here. Turn the phone through 180 degrees on the same spot: unequal readings show an offset.
Why does it not work on my laptop?
Most laptops and desktops have no tilt sensor, so the browser has nothing to report. The page says so after about a second and a half. Open it on a phone or tablet.
Why does my iPhone ask for permission?
Safari makes a page ask before it can read motion and orientation, and the question can only come from a tap. Press Start and choose Allow.
How many millimeters per meter is 1 degree?
About 17.5 mm per meter. The table above gives the others, from 0.5 degrees (8.7 mm per meter) to 10 degrees (176.3 mm per meter).
Sources
The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.