---
title: "Converts compensation between annual salary, monthly pay, weekly pay, and hourly wage. Accepts any of the four pay periods as input and derives all others. Uses configurable hours per week (default 40) and weeks per year (default 52). Daily rate assumes an 8-hour workday; monthly is annual divided by 12. Useful for comparing job offers quoted in different pay periods, freelance rate-setting, and budgeting. Chain from sales_tax to see how many hours a purchase costs."
method: POST
path: "/api/salary_to_hourly"
tags: ["general"]
---

# Converts compensation between annual salary, monthly pay, weekly pay, and hourly wage. Accepts any of the four pay periods as input and derives all others. Uses configurable hours per week (default 40) and weeks per year (default 52). Daily rate assumes an 8-hour workday; monthly is annual divided by 12. Useful for comparing job offers quoted in different pay periods, freelance rate-setting, and budgeting. Chain from sales_tax to see how many hours a purchase costs.

`POST /api/salary_to_hourly`

## Request

- Base URL: `https://calc.engineer`
- URL: `https://calc.engineer/api/salary_to_hourly`
- Auth: none declared

## Request body

- object
  - `amount` number, required: The salary or wage amount to convert.
  - `from_type` 'annual' | 'monthly' | 'weekly' | 'hourly': The pay period of the input amount. Defaults to 'annual'.
  - `hours_per_week` number: Hours worked per week. Defaults to 40 for a standard full-time schedule.
  - `weeks_per_year` number: Working weeks per year. Defaults to 52. Use 50 to account for 2 weeks unpaid vacation.

## Response `200`

Computed result for salary_to_hourly

- object
  - `result` object, required
    - `hourly` number, required: Hourly wage.
    - `daily` number, required: Daily earnings assuming an 8-hour workday.
    - `weekly` number, required: Weekly earnings.
    - `biweekly` number, required: Biweekly (every two weeks) earnings.
    - `monthly` number, required: Monthly earnings (annual / 12).
    - `annual` number, required: Annual salary.
  - `tool` string, required
  - `version` string, required
  - `computed_at` string, date-time, required
  - `chain` object, required
    - `feeds` unknown[]
      - unknown
    - `accepts_from` unknown[]
      - unknown

## Other responses

- `400`: Validation error or invalid JSON
- `404`: Tool not found

---

[API](https://skmtc.dev/calc/apis/calc-engineer-api.md) · [All operations](https://skmtc.dev/calc/apis/calc-engineer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calc/apis/calc-engineer-api/revisions/8830480ec488?raw)
