{"id":9649,"date":"2026-10-19T17:18:18","date_gmt":"2026-10-19T20:18:18","guid":{"rendered":"https:\/\/simcalculo.com\/pt-br\/margin-calculator\/"},"modified":"2026-10-19T17:18:18","modified_gmt":"2026-10-19T20:18:18","slug":"margin-calculator","status":"publish","type":"page","link":"https:\/\/simcalculo.com\/en\/margin-calculator\/","title":{"rendered":"Margin Calculator"},"content":{"rendered":"<section class=\"rp-tool mg-tool\" data-margin-tool aria-label=\"Margin calculator\"><p class=\"en-intro\">Calculate profit margin and markup from cost and selling price, or find a selling price for your target margin.<\/p><script type=\"application\/json\" data-config>{\"schemaVersion\":1,\"intro\":\"Calculate profit margin and markup from cost and selling price, or find a selling price for your target margin.\",\"currency\":\"USD\",\"example\":{\"cost\":60,\"price\":100,\"target\":40,\"markup\":66.6666666667,\"quantity\":1}}<\/script>\n<form id=\"mg-form\" novalidate><label for=\"mg-mode\">What would you like to calculate?<\/label><select name=\"mode\" id=\"mg-mode\"><option value=\"margin\">Margin from cost and selling price<\/option><option value=\"price\">Selling price from target margin<\/option><option value=\"markup\">Selling price from markup<\/option><\/select><div class=\"rp-grid\">\n<div><label for=\"mg-cost\">Cost per item<\/label><div class=\"sc-money-field\"><span class=\"sc-money-currency\" id=\"mg-cost-currency\">USD<\/span><input id=\"mg-cost\" name=\"cost\" inputmode=\"decimal\" autocomplete=\"off\" aria-describedby=\"mg-cost-currency mg-cost-help\" data-money><\/div><small id=\"mg-cost-help\">Include the costs you want to account for. Use the same tax basis as the selling price.<\/small><\/div>\n<div data-mode=\"margin\"><label for=\"mg-price\">Selling price per item<\/label><div class=\"sc-money-field\"><span class=\"sc-money-currency\" id=\"mg-price-currency\">USD<\/span><input id=\"mg-price\" name=\"price\" inputmode=\"decimal\" autocomplete=\"off\" aria-describedby=\"mg-price-currency\" data-money><\/div><\/div>\n<div data-mode=\"price\" hidden><label for=\"mg-target\">Target profit margin (%)<\/label><input id=\"mg-target\" name=\"target\" inputmode=\"decimal\" autocomplete=\"off\" disabled><small>Percentage of the selling price, from 0 to 99.99%.<\/small><\/div>\n<div data-mode=\"markup\" hidden><label for=\"mg-markup\">Markup on cost (%)<\/label><input id=\"mg-markup\" name=\"markup\" inputmode=\"decimal\" autocomplete=\"off\" disabled><small>Percentage added to the cost, not the selling price.<\/small><\/div>\n<div><label for=\"mg-currency\">Currency<\/label><select name=\"currency\" id=\"mg-currency\"><option  selected='selected'>USD<\/option><option >GBP<\/option><option >EUR<\/option><option >CAD<\/option><option >AUD<\/option><option >BRL<\/option><\/select><small>Display only; no currency conversion.<\/small><\/div><div><label for=\"mg-quantity\">Quantity<\/label><input name=\"quantity\" id=\"mg-quantity\" value=\"1\" inputmode=\"numeric\"><small>Whole items. Unit percentages stay the same.<\/small><\/div><\/div><p class=\"rp-help\">Use decimal points, such as 60.50. Margin and markup use different denominators. Taxes, fees and overhead are not added automatically.<\/p><p class=\"rp-error\" data-error id=\"mg-error\" role=\"alert\" hidden><\/p><div class=\"rp-actions\"><button class=\"rp-primary\" type=\"submit\">Calculate<\/button><button type=\"button\" data-example>Use example<\/button><button type=\"reset\">Clear<\/button><\/div><\/form><p data-status class=\"rp-help\" role=\"status\" aria-live=\"polite\"><\/p>\n<section data-result hidden tabindex=\"-1\" aria-label=\"Margin result\"><div class=\"rp-answer\"><span data-result-label>PROFIT MARGIN<\/span><h2 data-answer><\/h2><p data-answer-note><\/p><\/div><dl class=\"mg-metrics\"><div><dt>Profit per item<\/dt><dd data-profit><\/dd><\/div><div><dt>Markup on cost<\/dt><dd data-markup><\/dd><\/div><div><dt>Selling price per item<\/dt><dd data-price><\/dd><\/div><\/dl><p class=\"rp-note\" data-warning hidden><\/p><h3>Totals for your quantity<\/h3><dl class=\"mg-metrics\"><div><dt>Revenue<\/dt><dd data-revenue><\/dd><\/div><div><dt>Entered costs<\/dt><dd data-total-cost><\/dd><\/div><div><dt>Profit on entered costs<\/dt><dd data-total-profit><\/dd><\/div><\/dl><details class=\"rp-working\" open><summary>Show the calculation<\/summary><div data-working><\/div><\/details><p class=\"rp-help\">This is profit on the costs you entered, not necessarily your business's net profit. Values are rounded for display; the calculations use full precision.<\/p><div class=\"rp-actions\"><button type=\"button\" data-copy>Copy result<\/button><button type=\"button\" data-csv>Download CSV<\/button><button type=\"button\" data-print>Print result<\/button><\/div><\/section><\/section>\n\n\n\n<div class=\"en-editorial\"><h2>How to calculate profit margin<\/h2><p>Subtract cost from selling price to get profit. Divide profit by selling price, then multiply by 100.<\/p><p><strong>Margin (%) = (selling price \u2212 cost) \u00f7 selling price \u00d7 100.<\/strong><\/p><p>For an item that costs USD 60 and sells for USD 100, profit is USD 40 and the margin is 40%. The quantity affects total revenue and profit, but not the unit percentages.<\/p><h2>Margin versus markup<\/h2><p>Margin uses selling price as its denominator. Markup uses cost. In the same example, USD 40 profit divided by USD 60 cost gives a markup of approximately 66.67%.<\/p><p>A 40% markup on USD 60 gives a price of USD 84, not USD 100. Profit is USD 24 and the margin is approximately 28.57%. The percentages measure different things.<\/p><h2>Find a selling price for a target margin<\/h2><p><strong>Selling price = cost \u00f7 (1 \u2212 target margin \u00f7 100).<\/strong> For a USD 60 cost and 40% target margin, divide 60 by 0.60 to get USD 100. A target of 100% is not possible with a positive cost and a finite selling price.<\/p><p>The calculation uses full precision. If the result includes a fraction of a cent, the displayed price rounds to the nearest cent. Round up when a minimum target must be met.<\/p><h2>What to include in cost<\/h2><p>Enter the cost basis you want to evaluate. For a product-level gross margin, that commonly means cost of goods sold. If you include extra expenses, the result instead reflects profit after those entered expenses. Do not assume it represents your whole business&#8217;s net margin.<\/p><p>Use cost and price on a consistent tax basis. Taxes, marketplace fees, payment fees, shipping and overhead are not automatically added. Percentage fees based on the selling price require separate treatment; this calculator does not infer them.<\/p><h2>Losses and zero cost<\/h2><p>A selling price below cost produces negative profit and margin. The tool flags that loss. A positive selling price with zero cost has a 100% margin, while markup is undefined because it would divide by zero. Price-building modes require positive cost.<\/p><h2>Formula reference and privacy<\/h2><p><a href=\"https:\/\/www.shopify.com\/tools\/profit-margin-calculator\" target=\"_blank\" rel=\"noopener\">Shopify&#8217;s profit-margin reference<\/a> uses selling price as the margin denominator and distinguishes it from markup on cost. This tool uses those basic arithmetic definitions and does not depend on a paid service or current tax tables.<\/p><p>Calculations run in your browser. The calculator does not submit the cost and price values you enter to our server. Currency selection only changes the display label.<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>How to calculate profit margin Subtract cost from selling price to get profit. Divide profit by selling price, then multiply by 100. Margin (%)&hellip;<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9649","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/pages\/9649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/comments?post=9649"}],"version-history":[{"count":0,"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/pages\/9649\/revisions"}],"wp:attachment":[{"href":"https:\/\/simcalculo.com\/pt-br\/wp-json\/wp\/v2\/media?parent=9649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}