Mobile Safe Area Calculator
Calculate usable content area after notches and home indicators.
About the Mobile Safe Area Calculator
Estimates the safe content area of a mobile screen after subtracting the status bar, notch inset and bottom home-indicator inset, the region where UI won't be clipped.
How to use
Enter the viewport size and the top and bottom safe-area insets, then click Calculate.
Worked example
393×852 with 47px top and 34px bottom insets → 393×771 usable.
How to use this calculator
- Enter the device screen size.
- Add the safe area inset values for each side.
- Run the calculation to get the usable content area.
- Use the result to guide layout, spacing, or cropping decisions.
The formula explained
$$ \text{usable width} = \text{screen width} - \text{left inset} - \text{right inset}, \quad \text{usable height} = \text{screen height} - \text{top inset} - \text{bottom inset} $$
- \(\text{screen width}\) = the full device width in pixels or points
- \(\text{screen height}\) = the full device height in pixels or points
- \(\text{left inset}\) = space blocked on the left by a notch, rounded corner, or system area
- \(\text{right inset}\) = space blocked on the right by a notch, rounded corner, or system area
- \(\text{top inset}\) = space blocked at the top by a notch or status area
- \(\text{bottom inset}\) = space blocked at the bottom by the home indicator or system bar
- \(\text{usable width}\) = the content width that remains available
- \(\text{usable height}\) = the content height that remains available
Step by step method
- Start with the full screen dimensions of the device or preview frame.
- Enter the inset values reported by the device or design spec for the top, bottom, left, and right edges.
- Subtract the horizontal insets from the screen width to get usable width.
- Subtract the vertical insets from the screen height to get usable height.
Worked example
Here is a simple example for an iPhone-style screen with a notch and a home indicator.
- Suppose the screen is 390 pixels wide and 844 pixels tall, with top inset 47, bottom inset 34, left inset 0, and right inset 0.
- Compute usable width: \(390 - 0 - 0 = 390\) pixels.
- Compute usable height: \(844 - 47 - 34 = 763\) pixels.
Answer. The usable content area is 390 by 763 pixels.
Tips and common mistakes
- Use the same unit for every input, such as pixels, points, or density-independent pixels.
- Do not confuse safe area insets with margins or padding you add yourself.
- Check whether the tool expects screen size before rotation or after rotation.
- If a device has asymmetric edges, enter each side separately instead of reusing one value.
Frequently asked questions
What is the safe area?+
The part of the screen not covered by the notch, status bar or home indicator.
How do I use it in CSS?+
With env(safe-area-inset-top) and related environment variables.
More Tech Tools Tools
Explore related calculators in this category
CDN & Cache Header Guide
Understand which CDN serves a site from its response headers.
Color Contrast Checker (WCAG)
Check the WCAG contrast ratio between a text and background color.
Favicon URL Builder
Build the standard favicon HTML tags for your site.
Screen Resolution Detector
Detect your screen resolution, viewport size and pixel ratio.
You Might Also Like
Popular tools from other categories
Area & Volume Calculator
Calculate area and volume of a box-shaped space.
Area Converter
Convert between square meters, acres, hectares, square feet, etc.
CORS Header Builder
Build the right CORS response headers for your API by choosing allowed origins, methods and headers.
Circle Area Calculator
Calculate the area and circumference of a circle. Free online calculator with instant results, step-by-step explanations, and a clear worked example.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.