Skip to content
streamneo.
Tools12 min read

How to Calculate Video Aspect Ratio from Width and Height

Find a video's aspect ratio from its pixel dimensions, reduce it to whole numbers and resize without stretching or cropping by accident.

sn.
StreamNeoPublished 5 October 2026
Worth sharing?

To calculate a video’s aspect ratio, find its width and height in the file information, then divide the width by the height. You can express the result as a decimal, such as 1.78, or reduce the width and height to a whole-number ratio, such as 16:9.

The ratio describes the shape of the frame, not its pixel count or quality. It can help you resize a video without distortion, but the right shape depends on where and how you intend to display it.

Find the video’s width and height

Start with the dimensions recorded for the video file. They are usually shown in pixels as width × height—for example, 1920 × 1080. The first number is the horizontal dimension; the second is the vertical dimension. Keep that order throughout the calculation.

You can usually find these figures in a media player’s file information, an editing or encoding programme, or the video’s metadata panel. Adobe’s Dynamic Media documentation describes reading a video’s dimensions and using its width-to-height relationship to identify the ratio. The names of the relevant menus vary by software, so look for terms such as “dimensions”, “resolution” or “frame size”.

If the video is already open in an editor, check the source clip’s properties rather than assuming the project or export settings match it. An editor might show one size for the source and a different size for the sequence. For calculating the source video’s ratio, use the source dimensions; for checking a finished export, inspect the exported file itself.

Do not swap the numbers. A file reported as 1080 × 1920 is portrait-shaped in its stored dimensions; it is not the same as 1920 × 1080. Some players rotate footage based on orientation metadata, so if the picture appears turned compared with the raw dimensions, note that before deciding how to crop or export it.

For an always-on channel, checking the file before you set up a loop can prevent a framing surprise after the broadcast starts. If you are preparing a devotional playlist, for instance, establish whether the source videos share the same orientation before combining them. The practical setup considerations in running an always-on Hindi music playlist are separate from this calculation, but the source shape is one of the things worth checking before a long run.

Calculate width divided by height

Use this formula:

Aspect ratio as a decimal = width ÷ height

For a file that is 1920 pixels wide and 1080 pixels high, calculate 1920 ÷ 1080. The result is approximately 1.78. That decimal tells you the frame is wider than it is tall. A result below 1 means it is taller than it is wide; a result of 1 means the two dimensions are equal.

The decimal is useful for a quick comparison, but it is often easier to communicate the shape as a pair of numbers. Write the original dimensions as width:height and reduce both sides by the same factor. For example, 1920:1080 becomes 16:9. The following section walks through that reduction.

Here are a few calculations to show how orientation changes the result. They are examples, not a list of formats you must use:

Pixel dimensions (width × height) Width ÷ height Reduced width:height
1920 × 1080 approximately 1.78 16:9
1080 × 1920 0.5625 9:16
1440 × 1080 approximately 1.33 4:3
1080 × 1080 1 1:1

The decimal and reduced ratio express the same frame shape in different ways. In particular, the value after division is not a resolution setting. Two videos can have the same ratio but different pixel dimensions, and a ratio by itself cannot tell you which has more detail or will look better on a particular screen.

Adobe’s documentation gives 1440 × 1080 as an example: dividing the dimensions gives approximately 1.33, which corresponds to 4:3. When you have a repeating video loop with several files, check each one rather than inferring all their ratios from a single clip. If you have already run into a stream-health issue, ratio is a different diagnostic from bitrate; the bitrate warning checklist can help you keep those checks distinct.

Reduce width:height to whole numbers

To turn dimensions into a reduced ratio, find a common factor that divides both numbers, then divide each by it. For 1920:1080, a common factor of 120 gives 16:9. You can use the greatest common divisor (GCD), which is the largest whole number that divides both dimensions exactly, to reduce the ratio in one step.

A calculator or a simple GCD function can do the arithmetic, but it is worth understanding what it is doing. With 1440:1080, the GCD is 360. Dividing both dimensions by 360 gives 4:3. With 1080:1920, the GCD is 120, giving 9:16. If you do not know the GCD immediately, you can divide both values by shared factors in stages until no further whole-number reduction is possible.

Reduction does not change the file or resize the picture. It is just a simpler way of writing the same proportion. For instance, 1920:1080 and 16:9 describe the same shape; the first pair also tells you the pixel dimensions, while the second does not. A 16:9 label alone cannot tell you whether the video is 1280 × 720, 1920 × 1080 or another pair with that proportion.

Some dimensions do not reduce to a neat, familiar pair. That is not an error. You can retain the original width:height values, use the decimal result, or state the exact fraction. Avoid rounding a decimal and then treating that rounded value as an exact ratio if you are calculating a new dimension; use the original width and height for the arithmetic.

This distinction matters if your editor asks for a target aspect ratio while your source has an unusual frame. The reduced pair can help you identify the shape, but the source dimensions tell you what you actually have to work with. If the file is for a 24/7 ambience channel, for example, check whether its opening titles, artwork and footage are all framed for the intended screen before preparing the continuous video. A spare-PC relaxation channel setup involves other operational decisions too; calculating the picture ratio is one small, concrete preflight check.

Worked example: 1920 by 1080

Take a video whose metadata reports a width of 1920 pixels and a height of 1080 pixels. First divide width by height: 1920 ÷ 1080 = 1.777… The decimal is often written as approximately 1.78, because the division continues beyond the digits shown.

Next write the dimensions in width:height order: 1920:1080. Both numbers divide evenly by 120, so divide each by 120: 1920 ÷ 120 = 16, and 1080 ÷ 120 = 9. The reduced form is therefore 16:9. This example is a calculation, not a recommendation that every video should have that shape.

A different file can produce a different result. If a video is 1080 × 1920, then 1080 ÷ 1920 = 0.5625 and 1080:1920 reduces to 9:16. If a video is 1080 × 1080, the quotient is 1 and the ratio reduces to 1:1. These outcomes follow directly from the reported dimensions; the platform and intended viewing context determine what you do with them.

YouTube Help says that 16:9 is the standard aspect ratio for its computer player and gives 1920 × 1080 as a resolution for that shape. It also says the player adapts to the video’s dimensions and the viewer’s device. Read that as guidance about YouTube’s display behaviour, not a universal rule for every video or destination. Before exporting for a particular service, check its current official instructions, since upload guidance can change.

The distinction between frame shape and pixel dimensions is also useful when reviewing a live-channel source. A 1280 × 720 clip and a 1920 × 1080 clip both reduce to 16:9, but they do not have the same number of pixels. The ratio does not say whether either source is sharp enough for your intended presentation; nor does it specify the player size, bitrate or other export choices.

Resize without distorting the image

Once you know a source’s shape, preserve its proportions when changing its size. If you want to set a new width, calculate the matching height from the source proportion. For a 16:9 target, for example, height = width × 9 ÷ 16. If you set the width to 1280 pixels, that calculation gives a height of 720 pixels. Reversing the calculation, width = height × 16 ÷ 9.

Most editing tools have a lock, chain or “keep aspect ratio” control beside the width and height fields. When it is enabled, changing one dimension updates the other in proportion. Check the resulting preview, because an editor may also change the canvas, crop the image or add empty space depending on its settings. A width and height entered independently can stretch faces, circles and other familiar shapes if they no longer follow the source proportion.

When the source shape and destination frame differ, you have three basic choices. None is automatically right for every project:

Approach What happens Main trade-off
Crop Parts of the original picture are removed to fill the target frame The frame can be filled, but important material near the edges may disappear
Pad Space is added around the picture to fit it inside the target frame The whole picture remains visible, but borders or empty areas appear
Stretch Width and height are changed independently The frame fills, but objects and people can look unnaturally wide or tall

For a portrait clip placed into a landscape frame, cropping may remove substantial content at the top or bottom, depending on the composition. Padding preserves more of the original but leaves unused space. Stretching changes the proportions of everything in the image. Preview a representative scene, not only a title card, before you export: moving subjects and details near the edges make cropping consequences easier to spot.

If you are preparing a video for YouTube, its Help page on video resolution and aspect ratios advises against adding padding or black bars directly into the file, since that can interfere with the player’s dynamic sizing. This does not mean padding is never appropriate in other workflows; it means you should consider the destination’s own display guidance rather than baking borders in by habit.

For a loop intended to run overnight, the choice affects more than a single thumbnail. Repeated black bars or a badly cropped devotional image can be visible throughout the broadcast, while a stretched logo can look wrong even when the stream itself is stable. StreamNeo removes the need to leave your own computer running to keep an uploaded video on air, but it does not choose the intended framing for you: check the file and its crop or padding before preparing it for the channel.

Check metadata and intended display

For ordinary square-pixel video, width ÷ height gives the frame’s shape. Some older or specialised files use non-square pixels, also called a sample aspect ratio (SAR). In that case, the displayed aspect ratio (DAR) can differ from the simple ratio of stored width to stored height. If a file looks stretched despite dimensions that suggest a familiar shape, the arithmetic may be correct while the pixel or display metadata changes how the picture is presented.

FFmpeg’s official FAQ distinguishes display aspect ratio from sample aspect ratio and describes aspect information stored with video. You do not need to inspect such metadata for every straightforward modern file. It becomes relevant when a video looks unexpectedly wide or narrow, comes from an older source, or changes appearance between players. In that situation, check the reported display and pixel aspect information in a media tool before resizing the picture; blindly changing dimensions could compound the mismatch.

Then consider the actual destination. Is the video intended for a landscape screen, a portrait display, a square post, or a player that adjusts to the file? Does the source include text or a person near the edge that a crop could cut off? Is a border acceptable? Those questions help you select a target frame without treating any common ratio as compulsory.

For YouTube, the computer player’s standard ratio is 16:9, but YouTube says its player adapts to the video’s dimensions and the viewer’s device. That guidance does not establish a single correct ratio for every upload or every way a viewer watches. Check the current official page when you need platform-specific export instructions, and preview the video in the context where your audience is likely to see it.

A sensible check before a long broadcast is to inspect the file’s dimensions, confirm whether it appears correctly oriented, and compare its shape with the intended display. If it needs adjustment, decide whether to preserve the complete image with padding or accept a deliberate crop; keep the proportions locked either way. You can also test a representative section privately before making a loop public, as described in testing a YouTube loop stream privately.

The calculation itself is simple, but it answers only a specific question: what is the proportion between this file’s width and height? It does not determine whether the file has sufficient resolution, whether the image is well composed, or how a particular player will handle it. Keep those checks separate, and base a resize on the source dimensions and the display you actually intend.

Before committing, compare the operating options on the pricing page. When the file and channel are ready, start free — 24-hour trial, no card.

FAQ

How do I find my video’s aspect ratio?

Find the file’s width and height in its metadata, divide the width by the height, and write the dimensions as width:height. You can keep the decimal result or reduce both numbers by their greatest common divisor. If the displayed picture does not match the simple dimensions, check whether its orientation or pixel aspect metadata affects playback.

Is aspect ratio the same as resolution?

No. Aspect ratio describes the shape of the frame; resolution gives its pixel dimensions. Different resolutions can have the same ratio, so a ratio alone does not tell you how much detail a file contains or what display size is suitable.

How do I resize without stretching a video?

Lock the width and height proportions in your editor, or calculate the missing dimension using the source ratio. If the target frame has a different shape, choose whether to crop, pad or accept another intentional framing change. Preview the result to make sure it preserves the parts of the picture you need.

Does every YouTube video need to be 16:9?

No. YouTube describes 16:9 as the standard aspect ratio for its computer player, and says the player adapts to the video’s dimensions and viewer’s device. Check the current YouTube guidance for your upload context rather than treating that standard as a rule for every video.

YOU’VE REACHED THE END

Keep the ideas coming.

More guides, useful tools and a little help for your next broadcast.

Back to the journal ↗
YOUR NEXT READ

A little more to explore.

More Tools guides ↗ · All topics ↗