regula.tools
100% Client-SideMedia & Graphics

Aspect Ratio, Resolution & Display PPI Calculator

Whether you are resizing responsive web images, configuring video timelines (16:9, 9:16 Reels, 21:9 ultrawide), or evaluating a monitor’s Retina PPI density, this client-side geometry engine simplifies any pixel pair via Greatest Common Divisor (GCD), solves missing proportional dimensions, and outputs copy-ready CSS and Tailwind snippets.

Loading workspace...

#How to Use This Tool

1Enter your source Width and Height in pixels or pick a preset (1080p, 4K UHD, Reels 9:16, Ultrawide, MacBook 16:10).
2Use the Proportional Dimension Solver to compute an exact missing height from a target width (or vice versa) without distortion.
3Optionally enter a screen diagonal in inches to inspect pixel density (PPI), dot pitch, and Retina threshold status.
4Copy the generated CSS aspect-ratio rule, Tailwind utility class, or DPR scaling table.

#Mathematical Formula & Standards

Simplified Ratio = (W / GCD(W, H)) : (H / GCD(W, H)). Proportional Height = Target_Width × (H / W). Display PPI = sqrt(W² + H²) / Diagonal_Inches; Dot Pitch (mm) = 25.4 / PPI.

#Edge Cases & Technical Considerations

Non-Standard Ultrawide Ratios (3440 × 1440)

Although marketed as 21:9, 3440 × 1440 simplifies mathematically to 43:18 (2.3889:1), which sits closer to cinema scope 2.39:1 than exact 21:9 (2.3333:1).

Sub-Pixel Rounding in Responsive Layouts

When scaling odd dimensions (e.g., 1366 × 768), proportional targets can yield fractional pixels. Enable whole-pixel rounding for crisp bitmap exports.

#Frequently Asked Questions

Q:How is an aspect ratio simplified from pixel dimensions?

Both width and height are divided by their Greatest Common Divisor (GCD). For example, GCD(1920, 1080) = 120, which reduces 1920 × 1080 to 16:9.

Q:What PPI is considered Retina / HiDPI?

For desktop monitors viewed at arm’s length, 200+ PPI is typically considered HiDPI/Retina. For smartphones held closer, 300+ PPI is the standard Retina threshold.

Q:Are any images or dimensions uploaded to a server?

No. All aspect ratio, scaling, and PPI calculations run 100% locally in your browser.

Have feedback or feature requests?

Help us improve this utility. Share suggestions, report edge cases, or request new features directly.

Send Feedback