---
title: "VAT / sales tax"
description: "Add tax to a net price or back it out of a gross one, and the parts still add up."
canonical: "https://lopifi.com/tools/tax"
---

# VAT / sales tax

> Add tax to a net price or back it out of a gross one, and the parts still add up.

Source: https://lopifi.com/tools/tax
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Group:** Money

## Inputs

- `amount` — Amount
- `rate` — Rate %
- `direction` — The amount is (VAT and GST are usually quoted tax-inclusive; US sales tax is added on top.)
- `currency` — Currency (ISO 4217 code — sets the decimals: JPY 0, USD 2, KWD 3.)

Runs entirely in the browser: no network call, no data leaves the page. The same definition powers the Lopifi Tools Chrome extension.
