# Margin & markup

> They are not the same number, and confusing them is how a price list quietly loses money.

Source: https://lopifi.com/tools/margin
Part of: Lopifi — US GAAP books on autopilot, reviewed by a CPA (https://lopifi.com)

---

- **Group:** Money

## Inputs

- `cost` — Cost
- `price` — Price
- `targetMargin` — Target margin %
- `targetMarkup` — Target markup %
- `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.
