Online bubble level: check whether a shelf is level
Mesurix uses your phone’s accelerometer and a set-zero reference to compare a shelf, tabletop or edge with gravity, without an account or upload.
By Merey Tleugazin · Updated · 12 min read
Bubble level
Reads the tilt of the device from its motion sensors. Lay the phone flat on the surface you are checking.
Setting zero on a surface you know is flat cancels the sensor's own bias, which is what a tradesperson does before trusting a spirit level.
An online bubble level turns a phone into a practical check for a shelf, tabletop, picture rail or other surface. Mesurix reads the phone’s accelerometer, compares the handset with gravity, and offers a set-zero step for establishing a useful starting reference. Put the phone on the work, let the reading settle, and judge the result by repeated placements rather than by one glance at a moving display.
The bubble level sits alongside Mesurix’s ring-size tools and calibrated ruler because a phone can handle several small measuring jobs when each job has the right reference. The browser tools are free, need no account, run entirely in the page and upload nothing. The calibration value is stored as one number in localStorage. The Mesurix app works offline on iPhone and Android, with iOS 13 or later on iPhone.
What does a phone bubble level actually measure?
A phone bubble level measures orientation, not the shelf itself. The accelerometer detects acceleration along the handset’s internal axes. When the phone is resting, gravity contributes to that signal. Tilting the handset changes how gravity is distributed across those axes, and Mesurix turns that change into a level indication.
Gravity provides the reference. A phone lying in a physically horizontal position has one relationship with the downward gravity vector. A tilted phone has another. The app therefore compares the phone’s orientation with gravity at the place where the phone is resting. It does not measure the shelf’s length, flatness, strength, load capacity or construction.
That difference explains why a shelf can produce a level reading in one place and a different reading in another. A long shelf may bow between its supports. It may twist slightly. One bracket may sit higher than another. The phone reports the plane at its own contact position, so check near the left end, centre and right end when those differences matter.
A phone case is part of the physical setup. A raised camera bump, soft case, textured back or protruding button can lift one part of the handset. Dust, a screw head or a rounded front lip can do the same. If the phone rocks, the screen can change even though the shelf has not moved. Remove the case when it prevents firm contact, or use a straight edge that supports the phone at two stable points.
The display is not the measuring sensor. The accelerometer is inside the phone, and the relationship between that sensor, the case and the screen is fixed by the handset’s construction. Turning the phone changes which internal axis is being used for the check. Mesurix’s set-zero step lets the task begin from a chosen reference instead of treating the factory alignment as a perfect zero.
The difference between a reference and a display also appears in Mesurix’s online ruler. A browser cannot know the physical size of the pixels on its own screen. A CSS pixel is defined against a 96 dpi reference display, not against the actual panel in front of you. Calibration fixes that unknown scale. An ISO/IEC 7810 ID-1 bank card gives the ruler a known length: 85.60 mm x 53.98 mm. The same format is used for most bank cards, many national ID cards, driving licences and many transport cards. The ruler uses a known physical length; the bubble level uses gravity and the phone’s orientation.
Why does a phone level need a zero reference?
An accelerometer has sensor bias. That small offset can make an uncorrected phone report an orientation that is slightly different from the physical reference you intend to use. A level therefore needs a zero position: the position treated as the baseline from which tilt is judged.
Mesurix’s set-zero step records the phone’s current position as that baseline. Place the handset on a firm reference, keep it still, and set zero. Later movement is then compared with the recorded position. This does not alter gravity, repair a damaged sensor or prove that the first surface is horizontal. It creates a repeatable reference for the comparison you are making.
Choose the reference according to the job. To check true horizontal, use the ordinary level reading and do not set zero on a surface that is already known to be sloped. To compare two surfaces, set zero on the first surface, move the phone carefully, and compare the second surface with that first position.
A zero made on an unknown tilted shelf cannot prove that the shelf is horizontal. It can show whether another position matches the same tilt. That makes the method useful for comparing the left and right ends of one shelf, checking a cabinet top against a worktop, or seeing whether two surfaces share a slope.
Movement is not the same problem as sensor bias. A handset held in the hand receives acceleration from the hand. A handset resting on a surface can still move when a drawer closes, a nearby tool runs or the shelf flexes. Wait until the reading stops moving before setting zero. If the display continues to wander, reposition the phone rather than trying to read a precise value from motion.
Temperature, phone orientation and contact points can affect repeatability as well. Use the same handset orientation, keep the contact points firm, set zero only after movement has stopped, and take a second reading. If the second placement disagrees, improve the setup or use a physical level. Do not select the reading that best matches the result you wanted.
Mesurix performs exact arithmetic on the accelerometer data, but exact arithmetic cannot remove uncertainty from the sensor, the case, the contact surface or the chosen reference. That is the honest limit of an online bubble level. The result is only as good as the physical setup and calibration behind it.
When should I use surface mode or edge mode?
Surface mode checks a broad face, such as the top of a shelf or a tabletop. Edge mode checks a straight line, such as a shelf’s front edge or the side of a frame. Select the mode that gives the phone firm, repeatable contact with the part being aligned.
How do I use surface mode on a shelf top?
Use surface mode when the phone can lie flat on the shelf. Remove loose objects, dust and anything that lifts a corner. Place the phone with its back resting on the surface. Avoid a rounded lip, raised screw head, cable or soft covering that allows the handset to rock.
For a long shelf, check near the left side, centre and right side. A difference between those positions can indicate bowing, twisting or uneven support. One centre reading cannot reveal a change that occurs near a bracket or end. The phone measures the local contact plane, not every point along the shelf.
Check both directions. After taking the first reading, rotate the phone through a quarter turn and repeat without changing the place where it rests. Different readings after rotation can mean that the surface slopes along more than one direction. They can also mean that the phone is not touching evenly. Repeat the placement before treating the difference as a property of the shelf.
A soft mat, fabric layer or thick finish is a poor direct base for a phone. If a firm straight reference piece is available, place it on the shelf and put the phone on that piece only when the piece is stable and does not bend. Do not bridge a hollow with a flexible strip. The reference must provide a firm plane, not merely hide an uneven surface.
If the shelf has objects that cannot be removed, check an exposed part rather than balancing the phone on top of them. Keep the phone still and avoid pressing down. Pressure can flex a thin shelf or change which part of the case is touching the work.
How do I use edge mode on a shelf edge?
Use edge mode when the phone can rest against a straight front or side edge instead of lying on its back. Along the front edge, the check shows whether the shelf rises or falls from one side to the other. Along a side edge, it checks the other direction.
Give the phone two firm points of contact. Hold it steadily enough to stop rocking, but do not squeeze or press hard enough to flex the shelf. A stable two-point contact is more useful than a tight grip. Keep the handset in the same orientation when repeating the check.
Edge mode can help when the shelf top is uneven, covered or interrupted by objects. It is not suitable for an edge that is rounded, damaged or too narrow to support the phone consistently. If the phone slips or pivots, the reading describes the changing contact rather than a reliable edge alignment.
A straight reference piece can help only when it is rigid and held securely against the edge. A flexible ruler, folded paper or loose strip adds another source of movement. For a rounded or unstable edge, use a real spirit level rather than forcing the phone into a position it cannot hold.
Surface mode and edge mode present the same physical comparison in two contact arrangements. Surface mode suits a broad top face. Edge mode suits a straight line. In both cases, gravity is the reference and the way the handset touches the work determines what is being checked.
Mesurix’s calibrated on-screen ruler handles a different question. It measures length after calibration against an ISO/IEC 7810 ID-1 card. The bubble level measures orientation and needs a stable contact plane. A ruler cannot tell whether a shelf slopes, and a level cannot tell you how long that shelf is.
How accurate is a phone bubble level in practice?
There is no single tolerance in millimetres or degrees that is honest for every phone level. The result depends on the handset and its accelerometer, the case, the surface, the contact points, movement, the phone’s orientation and the set-zero reference. A promised number that ignores those variables would describe marketing rather than the particular measurement in front of you.
A practical phone level can still be useful. Start with repeatability. Place the phone in one position and wait for the display to settle. Note the result, lift the handset without sliding it, then put it back on the same contact points. If the reading returns close to the first result, the setup is behaving consistently. If it changes noticeably, improve the contact, remove the case, change the orientation or use a real spirit level.
Next, compare locations. Check both ends of the shelf and then the centre. Repeat each placement. A difference that remains after repeated placements is stronger evidence of a change in slope than one quick reading. A difference that follows the phone after rotation or case removal points towards the handset or contact surface instead.
The task determines how much residual tilt is acceptable. Aligning a bookcase, checking a work surface or adjusting a picture rail usually needs a stable indication and a repeatable comparison. A door, machine, structural installation or supplier-specified fitting has a different requirement. Do not turn a screen result into an invented tolerance for the finished work.
A small angular difference can create a larger gap over a long shelf, but the gap also depends on the shelf length, wall, brackets and shape of the object. Mesurix measures the phone’s orientation at its contact points. It does not inspect the complete installation or predict how a loaded shelf will behave.
A phone level cannot make an uneven or flexible shelf into a known plane. If the surface flexes under the handset, the reading may describe the handset’s position after the flex rather than the unloaded shelf. If the phone rocks, staring longer at the screen does not improve the reference. Stabilise the setup or choose a real spirit level.
Mesurix’s tools page keeps the bubble level beside the online ruler and ring-size tools because each tool uses a different physical reference. The ring-size calculator converts a measured ring value between sizing systems. A bubble level compares orientation with gravity. The arithmetic can be exact in both cases, while the practical result depends on placement and calibration.
The ring tools show the same distinction clearly. A ring size is the inner diameter of the band in millimetres. For US and Canada, diameter equals 11.63 + 0.8128 x size, so US 7 is 17.32 mm. One whole US size changes diameter by 0.8128 mm, about 2.55 mm of circumference. The calculation is exact; the input still has to be measured correctly. A phone level has the same boundary between calculation and physical setup.
When should I use a real spirit level instead?
Use a real spirit level when the work needs a known physical tolerance, when the handset cannot sit securely, or when a wrong alignment could create a safety problem. A physical spirit level has a body and vial designed to provide a fixed reference. It is the better instrument for construction, structural fitting, heavy equipment and work where a supplier specifies a tolerance.
A phone level is a sensible first check for a shelf, table, picture rail or small household object. It is also useful when a physical level is unavailable, too long or difficult to place. Check the same point twice and check more than one point on a long surface before deciding that the work is finished.
Use a real spirit level if the top is curved or soft, if the phone rocks, or if the reading changes after small movements. Those problems cannot be solved by looking more closely at the display. The reference must touch the work in a stable way, and a phone cannot provide that stability when the surface does not.
Mesurix’s bubble level is not a substitute for a jeweller’s steel mandrel, just as a ring-sizing screen is not equal to a jeweller’s equipment. The two tools have different jobs. The ring sizer helps measure a ring or finger. The bubble level checks orientation. Each needs a suitable reference and sensible confirmation.
For an expensive, non-returnable or safety-critical decision, confirm the result with the appropriate professional tool. A second check is especially important when a small measurement error would cost more than the convenience of using a phone. The online tool remains useful as a quick comparison and preparation step.
Mesurix is published by VAST FLOW, TOO and written by Merey Tleugazin, who builds the app. The site says that he is not a jeweller. The bubble level does not require jewellery expertise. It requires a steady phone, a clear reference, and an honest understanding that an accelerometer measures the handset’s orientation rather than the entire object.
If the phone reading is stable, repeatable and appropriate for the task, it can help you align a shelf without carrying another tool. If the reading is unstable or the consequence of error is high, use a real spirit level. That is the useful boundary between a convenient phone check and a measurement that needs dedicated equipment.
Bottom line
Mesurix’s online bubble level uses a phone’s accelerometer to compare the handset with gravity. The set-zero step records the phone’s current position as a reference, while surface mode checks a broad face and edge mode checks a straight edge. The result is useful for repeatable DIY alignment, but it has no single guaranteed tolerance in millimetres or degrees. Confirm expensive, structural or safety-critical work with a real spirit level.
FAQ
Can I use my phone as a spirit level?
A phone can check whether a shelf, surface or edge is tilted relative to gravity. Mesurix uses the phone’s accelerometer and a set-zero step to establish a reference. It is not the same instrument as a calibrated physical spirit level, so repeat the placement and use a real spirit level when the work has a specified or safety-critical tolerance.
How do I check whether my shelf is level with a phone?
Clear the shelf, place the phone flat on its top in surface mode, and wait for the reading to settle. Check near the left end, centre and right end. Rotate the phone through a quarter turn and repeat. Use edge mode on a straight front or side edge when the top is uneven or cannot support the phone securely.
Why does my phone level need calibration?
A phone’s accelerometer has a sensor bias, so its uncorrected zero may not match the physical horizontal position exactly. Mesurix’s set-zero step records the phone’s current position as the reference. It then shows change from that position, which is useful for comparing two surfaces or repeating a check on the same surface.
Is an online bubble level accurate enough for hanging a shelf?
It can be useful for ordinary shelf alignment when the phone sits firmly, the reading settles and repeated placements agree. There is no single honest tolerance for every handset, case, sensor and surface. Confirm important, expensive, structural or safety-critical work with a real spirit level.
Does a phone level work without internet?
The Mesurix app works offline, so its bubble level does not require an internet connection after installation. The browser tool runs entirely in the page, needs no account and uploads nothing. The page must be available when the browser tool is opened.