---
title: "Aspect Ratio Calculator (Resize & Crop)"
method: POST
path: "/api/v1/tools/aspect-ratio-calculator"
tags: ["photography"]
---

# Aspect Ratio Calculator (Resize & Crop)

`POST /api/v1/tools/aspect-ratio-calculator`

## Request

- Base URL: `https://calcfleet.com`
- URL: `https://calcfleet.com/api/v1/tools/aspect-ratio-calculator`
- Auth: none declared

Simplify an aspect ratio and resize while keeping it. Enter width and height to get the ratio like 16:9, then a new width to solve the matching height.

## Request body

- object
  - `width` number, required
  - `height` number, required
  - `newWidth` number, required

## Response `200`

Successful calculation result.

- object
  - `result` object, required: Structured calculation output (fields vary per calculator).

## Other responses

- `400`: Invalid input — the issues array contains Zod validation errors.
- `403`: Forbidden — an Authorization: Bearer cf_… key was supplied but is invalid.
- `404`: Unknown tool slug.

---

[API](https://skmtc.dev/calcfleet/apis/calcfleet-financial-calculators-api.md) · [All operations](https://skmtc.dev/calcfleet/apis/calcfleet-financial-calculators-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcfleet/apis/calcfleet-financial-calculators-api/revisions/cd9abd595bbe?raw)
