Skip to content

Online Aspect Ratio Calculator

    Use this aspect ratio calculator to find a matching width or height for an image, video frame or rectangular design. Choose a ratio and enter one known dimension to see both dimensions and the diagonal.

    Everyday calculations

    Aspect Ratio Calculator

    Find the matching width or height for your chosen aspect ratio, together with the diagonal. Use pixels, inches, centimeters or any other unit consistently.

    Your dimensions

    Diagonal Width Height

    Enter a positive measurement. Decimals and fractions, such as 7.5 or 7 1/2, are accepted.

    Calculated height

    —

    Enter a width or height, then calculate.

    All results use the same unit as your input: a width entered in pixels gives height and diagonal in pixels. Decimal results are rounded for display.

    For proportional dimensions on your phone, Unit Converter is free to download and includes an Aspect Ratio Calculator.

    How to use this tool

    1. Choose an Aspect ratio (width : height) from the listed presets.
    2. Under I know the, choose Width or Height, then fill the corresponding known measurement.
    3. Click Calculate to see both dimensions and the diagonal. Use the same unit for all measurements.

    What is an aspect ratio?

    Aspect ratio describes a rectangle’s width in relation to its height. It tells you whether an image, video frame or display is wide, tall or square. The usual notation is width : height, with the width written first.

    The numbers describe proportions rather than a particular size. An aspect ratio calculator uses those proportions to find the matching width or height when one dimension is known. This helps plan image sizes, video layouts and rectangular artwork without stretching the design.

    Understanding width and height

    If a ratio is written as a:b, then a represents the width part and b the height part. The numerical ratio is:

    Aspect ratio = width ÷ height = a ÷ b

    A value greater than one describes a landscape rectangle; a value below one describes a portrait rectangle. A value of one describes a square. Reversing the two parts exchanges the width and height, turning a landscape format into its portrait counterpart.

    The available presets include 1:1 for a square, 16:9 for a widescreen rectangle and 9:16 for its portrait counterpart. The other choices are 4:3, 16:10, 21:9, 2.35:1 and 2.39:1. Each defines the shape before you choose its size.

    Finding the missing dimension

    With a known width, multiply by the height part of the ratio and divide by the width part. With a known height, reverse those two ratio parts:

    Height = known width × b ÷ a
    Width = known height × a ÷ b

    These formulas keep both dimensions in the required proportion. If you are resizing an existing image, the same principle means multiplying its original width and height by the same scale factor. Enlarging or reducing only one side changes the image proportions.

    The measurements can be in pixels or a physical length unit. A pixel width produces a pixel height; a width in centimeters produces a height in centimeters. For a measured rectangle, use the same unit for both sides before comparing their ratio.

    How the diagonal is calculated

    The diagonal runs from one corner of the rectangle to the opposite corner. Together with the width and height, it forms a right triangle. The Pythagorean theorem gives its length:

    Diagonal = √(width² + height²)

    The calculator reports this diagonal alongside the two dimensions. It is useful when comparing a rectangle’s overall dimensions with a corner-to-corner measurement. The diagonal is in the same unit as the width and height. OpenStax explains the right-triangle relationship behind this calculation.

    Choosing between scaling and cropping

    When the image and its destination frame have different ratios, there are two ways to preserve the shapes within the picture. Fit the whole image inside the frame and leave space around it, or enlarge it to fill the frame and crop the portions that extend beyond the edges. Cropping removes part of the composition; stretching one dimension changes the shapes themselves. MDN’s image-fitting reference illustrates these choices.

    Aspect ratio is also separate from pixel dimensions. Many image sizes can share the same ratio. Choose the intended shape first, then determine the pixel width and height needed for the final image or video frame.

    More tools: Browse all calculators and unit converters.

    Find proportional dimensions on your phone

    Keep the Aspect Ratio Calculator and other useful tools handy with Unit Converter. Download it free from the App Store or Google Play.

    Leave a Reply

    Your email address will not be published. Required fields are marked *