Aspect Ratio Width
Calculate width from height and a width:height aspect ratio.
How to use
- Enter the target height.
- Enter ratio components a and b and calculate.
Capabilities and scope
The runner preserves ratio a:b by evaluating width=height×a/b.
How it works
It uses width = height×a/b.
Example
Height 1080 with 16:9 gives width 1920.
Useful for
- Size an image or video canvas
- Calculate responsive dimensions for a fixed ratio
Before you use it
- Ratio denominator b cannot be zero; output uses the same length unit as height.
Frequently asked questions
Does 9:16 portrait work?
Yes. Enter a=9 and b=16 to get the corresponding width.