---
title: "Margin & markup"
description: "Margin is profit over price; markup is profit over cost. Solve either way."
canonical: "https://lopifi.com/tools/margin"
---

# Margin & markup

> Margin is profit over price; markup is profit over cost. Solve either way.

Source: https://lopifi.com/tools/margin
Part of: Lopifi — Your VC tech stack partner (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.
