Markup and margin calculator
What price gives me the margin I want?
Showing for United States
Price
—
- Margin
- —
- Markup
- —
Measured on the rounded price.
Margin
—
- Markup
- —
Wholesale price
—
- Share of retail
- —
- Retail margin
- —
- Retail markup
- —
- Wholesale margin
- —
- Wholesale markup
- —
Enter your numbers to see the result.
Planning a farm stand, a CSA or a shop? TallyTill is free to start.
Use this calculator in an AI chat
You can ask Claude, ChatGPT or another AI app to work this out for you, and this calculator opens right inside the chat. You connect TallyTill to your AI app once. It is free, and there is no account and no sign-in.
AI apps call add-ons like this connectors, apps or MCP servers. They all mean the same thing: a way for the AI to use a tool someone else made.
1. Copy this address
2. Add it to your AI app
Claude (claude.ai and the Claude desktop app)
- Open Customize, then Connectors.
- Press + Add, then Add custom connector.
- Name it TallyTill calculators, paste the address and press Continue.
- Under Authentication choose No sign in, then press Add.
- In a new chat, press + at the bottom left, choose Connectors and switch TallyTill calculators on.
On Claude's free plan you can add one custom connector.
ChatGPT
- In Settings, turn on Developer mode. OpenAI moves this switch from time to time; it is usually with the settings for apps and connectors.
- Add a new connector (ChatGPT may call it an app), paste the address and choose No authentication.
- In a new chat, choose TallyTill from the tools menu, or type @ and pick it.
Not every ChatGPT plan lets you add your own connector. If you cannot find the option, your plan may not include it.
Using another AI app? Look in its settings for MCP, add the address as a remote server, and choose no sign-in.
3. Ask your question
Say "use TallyTill", so the AI uses the calculator instead of doing the sum itself. For example:
"Use TallyTill: What price gives me the margin I want?"
What you will see
- The calculator opens in the chat with the numbers you gave already filled in. Change any number and the answer updates.
- If a number is missing, the box is highlighted, or the AI asks you for it in plain words.
- The answer links back to this page, so you can check the working.
- The first time, your AI app asks if it may use TallyTill. Choose Allow.
The calculators take numbers only. They never ask for your name, your email or a password.
How this is worked out
Margin is a share of the price. Markup is a share of the cost. To find the price for a margin, divide the cost by one minus the margin: cost ÷ (1 − margin ÷ 100). To find it for a markup, multiply the cost by one plus the markup: cost × (1 + markup ÷ 100). The price is rounded up to the cent, so you never earn less than you asked for, and the margin and markup are then measured again on that rounded price. To convert, markup = margin ÷ (100 − margin) × 100, and margin = markup ÷ (100 + markup) × 100. For wholesale, the wholesale price is the retail price times the wholesale share, rounded to the nearest cent, and the margin and markup are shown at both levels, each measured on its own price.
A worked example
Say an item costs 1.00 and you want a 20 percent margin. The price is 1.00 ÷ (1 − 0.20) = 1.25. The margin on 1.25 is (1.25 − 1.00) ÷ 1.25 = 20 percent, and the markup is 0.25 ÷ 1.00 = 25 percent, so a 20 percent margin is a 25 percent markup. For wholesale, with a cost of 2.50 and a retail price of 6.00, selling at 60 percent of retail gives 6.00 × 0.60 = 3.60, and the wholesale margin is (3.60 − 2.50) ÷ 3.60 = 30.56 percent.
Nothing you type here is saved.