# Margin Calculator — Cost, Price, Margin and Markup > Enter any two of cost, price, margin, markup or profit and read the other three, with a target-margin price and a batch CSV table. Free, no login. A free margin and pricing toolkit that runs entirely in the browser: solve any two of cost, price, margin, markup and profit; gross and net margin from revenue and COGS; per-order Shopify unit economics with break-even ROAS; marginal cost from an output table; a margin-to-markup conversion table; and HVAC job pricing from a cost build-up. No account, no upload, no install. ## Pages - [Margin Calculator: Cost, Price, Margin and Markup](https://margin-calculator-bac.pages.dev/): Enter any two of cost, price, margin, markup or profit and read the other three. Includes a target-margin price and a batch CSV table. Free, no login. - [Gross Margin Calculator: Gross Profit from Revenue and COGS](https://margin-calculator-bac.pages.dev/gross-margin-calculator/): Turn revenue and cost of goods sold into gross profit, gross margin percentage and COGS percentage, with multi-product rows and a blended total. - [Shopify Profit Margin Calculator: Per-Order Profit and Break-Even ROAS](https://margin-calculator-bac.pages.dev/shopify-profit-margin-calculator/): Waterfall a single Shopify order: product cost, shipping, payment fees, platform fees and ad spend, then read the net margin and the break-even ROAS. - [Marginal Cost Calculator: The Cost of the Next Unit](https://margin-calculator-bac.pages.dev/marginal-cost-calculator/): Enter output levels and total costs to get the marginal cost of each step and the average total cost, plotted so the crossing point is visible. - [Margin vs Markup Calculator: The Difference and the Conversion Table](https://margin-calculator-bac.pages.dev/margin-vs-markup-calculator/): Convert margin to markup and back, see the conversion table from 10% to 80%, and see how much money a markup mistake leaves on the table. - [Net Profit Margin Calculator: Gross, Operating and Net Margin](https://margin-calculator-bac.pages.dev/net-profit-margin-calculator/): A miniature income statement: enter revenue, COGS, operating expenses, interest, taxes and other income to read gross, operating and net margin. - [HVAC Profit Margin Calculator: Job Pricing by Target Margin](https://margin-calculator-bac.pages.dev/hvac-profit-margin-calculator/): Price an HVAC job from equipment, materials, burdened labour and overhead: read the break-even price, the target-margin price and the markup shortfall. ## Key facts - margin % = (price − cost) ÷ price × 100; markup % = (price − cost) ÷ cost × 100. The denominator is the only difference. - The price for a target margin is cost ÷ (1 − margin), not cost × (1 + margin). At a 40% margin on a $100 cost the correct price is $166.67, not $140.00. - margin → markup: m ÷ (100 − m) × 100. markup → margin: k ÷ (100 + k) × 100. - A margin can never reach 100% (it would need a zero cost); a markup has no upper limit. - Gross margin = (revenue − COGS) ÷ revenue. Operating margin = (gross profit − operating expenses) ÷ revenue. Net margin = net profit ÷ revenue. - net profit = revenue − COGS − operating expenses − interest − taxes + other income. - Marginal cost = Δ total cost ÷ Δ quantity; the fixed cost cancels out of the difference. - Average total cost = total cost ÷ quantity; it falls while marginal cost is below it and rises once marginal cost crosses above it. - Shopify Payments online standard card rate on Basic: 2.9% + 30¢; third-party transaction fee on Basic: 2% (shopify.com/pricing, read 2026-11-24). - Break-even ROAS = price ÷ (price − every non-advertising cost); at that ROAS the ad spend consumes exactly the profit the order would otherwise make. - A loss is a legal result and is carried through, never clamped to zero. - Canonical URL: https://margin-calculator-bac.pages.dev/ ## Machine-readable - [Sitemap](https://margin-calculator-bac.pages.dev/sitemap.xml) - [Robots policy](https://margin-calculator-bac.pages.dev/robots.txt) - [Home page](https://margin-calculator-bac.pages.dev/) — WebApplication + HowTo + FAQPage JSON-LD ## Sources - https://www.shopify.com/pricing — Read 2026-11-24: “Shopify Payments Online standard card rates 2.9% + 30¢” on Basic, and “Third-party transaction fees 2%”. Basic is “$39 USD/mo” monthly, $29 USD/mo yearly. - https://www.accountingcoach.com/blog/what-is-gross-margin — “Gross margin is the amount remaining after a retailer or manufacturer subtracts its cost of goods sold from its net sales.” - https://www.myaccountingcourse.com/accounting-dictionary/gross-margin — “Gross margin, often called gross profit, is a financial ratio that measures how well a company can control its costs. The gross margin formula is calculated by subtracting cost of good sold from the net sales during a period.” - https://www.myaccountingcourse.com/accounting-dictionary/net-profit-margin — “The net profit margin ratio, also called net margin, is a profitability metric that measures what percentage of each dollar earned by a business ends up as profit at the end of the year.” - https://corporatefinanceinstitute.com/resources/accounting/net-profit-margin-formula/ — Net profit margin is net income ÷ revenue, and net profit = net margin × revenue; the page works both directions. - https://www.accountingcoach.com/blog/what-is-marginal-cost — “Marginal cost is a manufacturer’s cost to produce one more unit of product. In other words, marginal cost is the change in total costs when one additional unit is produced.” - https://corporatefinanceinstitute.com/resources/economics/marginal-cost/ — “The Marginal Cost of Production is the cost to provide one additional unit of a product or service.” - https://corporatefinanceinstitute.com/resources/accounting/markup/ — Markup percentage formula and “the key difference between markup and gross margin” — the distinction the margin-vs-markup page is built on.