---
title: "Salary to Hourly Calculator (and Back)"
method: POST
path: "/api/v1/tools/salary-to-hourly-calculator"
tags: ["salary"]
---

# Salary to Hourly Calculator (and Back)

`POST /api/v1/tools/salary-to-hourly-calculator`

## Request

- Base URL: `https://calcfleet.com`
- URL: `https://calcfleet.com/api/v1/tools/salary-to-hourly-calculator`
- Auth: none declared

Convert an annual salary to an hourly wage or an hourly rate back to a yearly salary. Set your hours and weeks to see weekly, biweekly, and monthly pay too.

## Request body

- object
  - `mode` 'salaryToHourly' | 'hourlyToSalary', required
  - `annualSalary` number, required
  - `hourlyRate` number, required
  - `hoursPerWeek` number, required
  - `weeksPerYear` 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)
