What an aspect ratio is
Width to height, written as two whole numbers or one decimal.
An aspect ratio compares the width of a frame with its height. 1920 by 1080 pixels and 1280 by 720 pixels are different sizes with the same ratio, 16:9, because each width is 16/9 of its height.
To write a ratio in its simplest form, divide both numbers by their greatest common divisor. 1920 and 1080 share 120, which leaves 16 and 9. 1080 and 1350 share 270, which leaves 4 and 5. The decimal form divides width by height: 16:9 is about 1.778 and 4:5 is 0.8.
To resize without distortion, keep the ratio: new height = new width x height / width. A 16:9 frame 1280 pixels wide is 720 pixels tall.
Some ratios have names because a medium uses them. Many screens and videos use 16:9, and many camera sensors use 3:2. A-series paper uses 1 to the square root of 2, about 1.414, so a sheet cut in half keeps its shape. The golden rectangle uses 1 to phi, about 1.618. Avoid assuming a ratio name is exact: many 21:9 screens are 2560 by 1080, which is 64:27. Try the Aspect Ratio Calculator to simplify your own numbers.