Aspect Ratio Calculator
By using our calculators, you agree to our Terms of Use.
Scale an image to fit inside a target frame without distorting its proportions.
Image & target size
Scaled size
1,200 × 900 px
Fits inside 1,200 × 1,200 px
- Aspect ratio
- 1.333:1
Related calculators
Scaling while keeping aspect ratio
To resize an image without stretching or squashing it, you need to preserve its aspect ratio — the proportional relationship between width and height. This calculator finds the largest size that fits entirely inside a target width and height while keeping that same ratio, which is the standard "fit" (contain) behavior used in most editing and web-display tools.
The calculation finds a single scale factor: the smaller of (target width ÷ image width) and (target height ÷ image height), then applies that factor to both dimensions. Using the smaller ratio guarantees the scaled image fits inside the target box on both axes.
Example: a 4000 × 3000 pixel photo (4:3 ratio) resized to fit inside a 1200 × 1200 box scales down to 1200 × 900 — the width fills the box while the height leaves a margin, because the source image is wider than it is tall.
Common questions
Will this ever crop or stretch my image?
No. This "fit" calculation only scales the image proportionally so it fits entirely inside the target box — it never crops content or distorts the aspect ratio.
What if I want to fill the frame instead of fitting inside it?
Filling a frame edge-to-edge (and cropping any overflow) uses the larger of the two ratios instead of the smaller — this calculator uses the "fit" method, which never crops.