---
title: "Sales Tax Calculator"
method: POST
path: "/api/v1/tools/sales-tax-calculator"
tags: ["tools"]
---

# Sales Tax Calculator

`POST /api/v1/tools/sales-tax-calculator`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/sales-tax-calculator`
- Auth: HTTP bearer

Add sales tax to a net price, or pull it back out of a price that already includes it. Works for US sales tax and for VAT alike. Returns the net, the tax and the gross, rounded so that net plus tax is exactly the gross.

## Request body

- object
  - `amount` integer
  - `ratePercent` number
  - `mode` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `mode` string
    - `ratePercent` number
    - `net` integer
    - `tax` number
    - `gross` number

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
