Photography & Capture

Pixel Aspect Ratio & Display Fit Calculator

Calculate intended display shape for non-square pixels and fit the image into a square-pixel display without cropping.

How the calculation works

display_w = width*pixel_w/pixel_h. scale = min(screen_w/display_w,screen_h/height). Pixel width-to-height ratio = pixel_w/pixel_h ratio. Display aspect ratio width/height = display_w/height ratio. Equivalent square-pixel width at source height = display_w pixels. Fitted image width on display = display_w*scale pixels. Fitted image height on display = height*scale pixels. Unused horizontal space on each side = (screen_w-display_w*scale)/2 pixels. Unused vertical space on each side = (screen_h-height*scale)/2 pixels.

Worked example

Example inputs — Stored frame width (pixels): 720; Stored frame height (pixels): 480; Pixel aspect width component: 8; Pixel aspect height component: 9; Square-pixel display width (pixels): 1920; Square-pixel display height (pixels): 1080. Expected results — Pixel width-to-height ratio: 0.8888888889 ratio; Display aspect ratio width/height: 1.333333333 ratio; Equivalent square-pixel width at source height: 640 pixels; Fitted image width on display: 1440 pixels; Fitted image height on display: 1080 pixels; Unused horizontal space on each side: 240 pixels; Unused vertical space on each side: 0 pixels.

Assumptions and limits

Pixel aspect is pixel width divided by pixel height. Fits the full clean image into a square-pixel display without cropping, with ideal continuous geometry; actual renderers round to pixels and may apply clean-aperture cropping, rotation, interlace handling or device-specific metadata. This describes presentation shape, not image resampling quality.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.