{"id":119,"date":"2015-05-29T09:38:05","date_gmt":"2015-05-29T07:38:05","guid":{"rendered":"http:\/\/wpcalc.com\/?p=119"},"modified":"2026-10-23T10:17:40","modified_gmt":"2026-10-23T07:17:40","slug":"sales-gross-profit-margin","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/finance\/sales-gross-profit-margin\/","title":{"rendered":"Profit Margin Calculator \u2013 Gross Margin and Markup"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Gross Margin Percentage Calculator<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"119\" data-favorite-title=\"Sales Gross Profit Margin\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/finance\/sales-gross-profit-margin\/\" data-favorite-excerpt=\"Calculate gross profit margin and gross profit from your sales revenue and cost of goods sold (COGS). Enter two numbers to see what share of every sales dollar stays after production costs, plus an instant interpretation.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-inventory\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/finance\/sales-gross-profit-margin\/\" method=\"POST\" class=\"calculator\" id=\"calculator-119\" data-post=\"119\"><fieldset class=\"fieldset-input\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field\" id=\"input-1\"><label for=\"field-1\">Calculation mode<\/label><div class=\"grid grid-cols-1\"><select id=\"field-1\" name=\"calculation_mode\"><option value=\"margin\" selected>Gross margin &amp; markup from sales and COGS<\/option><option value=\"price\">Price for a target margin<\/option><option value=\"markup\">Markup %<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"field has-term\" id=\"input-2\"><label for=\"field-2\">Sales revenue<\/label><div class=\"term\">S<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"text\" name=\"sales_revenue\" id=\"field-2\" aria-describedby=\"calc-unit-2 calc-info-2\" data-number inputmode=\"decimal\" autocomplete=\"off\" spellcheck=\"false\" min=\"0.01\" value=\"500000\"\/><div class=\"unit\" id=\"calc-unit-2\">$<\/div><small id=\"calc-info-2\">Total revenue from sales<\/small><\/div><div class=\"field has-term\" id=\"input-3\"><label for=\"field-3\">Cost of goods sold (COGS)<\/label><div class=\"term\">C<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"text\" name=\"cost_of_goods_sold_cogs\" id=\"field-3\" aria-describedby=\"calc-unit-3 calc-info-3\" data-number inputmode=\"decimal\" autocomplete=\"off\" spellcheck=\"false\" min=\"0.01\" value=\"300000\"\/><div class=\"unit\" id=\"calc-unit-3\">$<\/div><small id=\"calc-info-3\">Total cost to produce or purchase the goods sold<\/small><\/div><div class=\"field has-term\" id=\"input-4\" hidden><label for=\"field-4\">Target gross margin<\/label><div class=\"term\">M<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"text\" name=\"target_gross_margin\" id=\"field-4\" aria-describedby=\"calc-unit-4 calc-info-4\" data-number inputmode=\"decimal\" autocomplete=\"off\" spellcheck=\"false\" min=\"0.01\" max=\"99.99\" value=\"40\"\/><div class=\"unit\" id=\"calc-unit-4\">%<\/div><small id=\"calc-info-4\">Desired margin for the reverse mode \u2014 price is calculated from COGS<\/small><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"119\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Your Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Gross Profit Margin<\/span><\/span><span class=\"field-value\" id=\"result-1\" data-unit=\"%\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-2\"><span class=\"field-title\"><span>Gross Profit<\/span><\/span><span class=\"field-value\" id=\"result-2\" data-unit=\"$\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-3\"><span class=\"field-title\"><span>Markup on Cost<\/span><\/span><span class=\"field-value\" id=\"result-3\" data-unit=\"%\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-4\"><span class=\"field-title\"><span>Required Price for Target Margin<\/span><\/span><span class=\"field-value\" id=\"result-4\" data-unit=\"$\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-5\"><span class=\"field-title\"><span>Interpretation<\/span><\/span><span class=\"field-value\" id=\"result-5\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"119\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Gross Profit Margin Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ \\text{Gross Profit Margin} = \\left( \\frac{S - C}{S} \\right) \\times 100 \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(S\\) \u2014 sales revenue, the total income from sales (in dollars)<\/li>\n<li>\\(C\\) \u2014 cost of goods sold (COGS), the total cost to produce or purchase the goods sold<\/li>\n<\/ul>\n<p>The formula expresses the percentage of revenue that remains after covering the direct costs of the goods sold. It measures how efficiently a business produces or sources and then sells its products.<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Gross Profit Margin \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> a business generates $500,000 in sales revenue, and its cost of goods sold for the period is $300,000.<\/p>\n<p>\\[ \\text{Gross Profit} = 500{,}000 - 300{,}000 = 200{,}000 \\]<\/p>\n<p>\\[ \\text{Gross Profit Margin} = \\frac{200{,}000}{500{,}000} \\times 100 = 40\\% \\]<\/p>\n<p><strong>Result:<\/strong> a gross profit of $200,000 and a gross profit margin of 40%. This falls in the \"healthy margin\" range, meaning the business keeps 40 cents of every sales dollar after paying for the goods themselves.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Calculator<\/h2>\n<ol>\n<li>Enter your <strong>Sales revenue<\/strong> \u2014 the total revenue from sales for the period you are analyzing.<\/li>\n<li>Enter your <strong>Cost of goods sold (COGS)<\/strong> \u2014 the total cost to produce or purchase the goods that were sold.<\/li>\n<li>Read the results: <strong>Gross Profit Margin<\/strong> (in %), <strong>Gross Profit<\/strong> (in dollars), and an <strong>Interpretation<\/strong> that classifies the margin as excellent, healthy, or low.<\/li>\n<\/ol>\n<h2>What Is Gross Profit Margin?<\/h2>\n<p>Gross profit margin is one of the most widely used profitability metrics in financial reporting and analysis. It shows the share of revenue left over after subtracting the direct costs of producing or buying the goods a company sells. Unlike a simple dollar profit figure, the margin is a percentage, which makes it easy to compare performance across periods, products, or companies of very different sizes.<\/p>\n<p>It is important to understand what COGS includes \u2014 and what it does not. COGS covers direct costs such as raw materials, direct labor, and the purchase price of inventory sold. It does <em>not<\/em> include operating expenses like rent, marketing, salaries of administrative staff, or taxes. That is why gross profit margin is only the first level of profitability: a high margin does not guarantee a profitable business if operating costs are large. For a fuller picture, pair it with our <a href=\"https:\/\/wpcalc.com\/en\/finance\/operating-profit-margin\/\">Operating Profit Margin Calculator<\/a>, which subtracts operating expenses as well.<\/p>\n<p>The interpretation in this calculator uses common benchmarks: 50% or more is considered an excellent margin with strong product markup, 30\u201350% is a healthy margin typical of many well-run businesses, and below 30% is a low margin that suggests looking into reducing COGS or raising prices. Keep in mind that \"good\" varies a lot by industry \u2014 grocery retail often runs on margins under 5%, while software companies can exceed 80%. The most meaningful comparison is against your own industry average and your own historical trend.<\/p>\n<h2>How to Interpret and Improve Your Result<\/h2>\n<p>A rising gross profit margin usually means better pricing power, lower input costs, or a shift toward higher-margin products. A falling margin is a warning sign: production costs may be climbing faster than prices, discounts may be eroding revenue, or the product mix may be changing. Tracking the margin month over month or quarter over quarter turns a single number into a real management tool.<\/p>\n<p>If your margin is low, there are two levers. First, reduce COGS: negotiate with suppliers, reduce material waste, or improve production efficiency \u2014 tools like the <a href=\"https:\/\/wpcalc.com\/en\/finance\/economic-order-quantity\/\">Economic Order Quantity Calculator<\/a> and the <a href=\"https:\/\/wpcalc.com\/en\/finance\/ending-inventory\/\">Ending Inventory Calculator<\/a> can help optimize purchasing and inventory costs. Second, increase prices \u2014 but be careful, because higher prices can reduce sales volume. The <a href=\"https:\/\/wpcalc.com\/en\/finance\/price-elasticity-of-supply-and-demand\/\">Price Elasticity of Supply and Demand Calculator<\/a> helps estimate how sensitive your customers are to price changes, and the <a href=\"https:\/\/wpcalc.com\/en\/finance\/break-even\/\">Break Even Calculator<\/a> shows how many units you must sell at a given price to cover your costs.<\/p>\n<h2>Assumptions and Limitations<\/h2>\n<ul>\n<li>The calculator assumes the entered COGS corresponds to the same period and the same sales as the entered revenue \u2014 mixing periods will distort the result.<\/li>\n<li>COGS must include only direct costs of goods sold. Including operating expenses will understate the margin; excluding true production costs will overstate it.<\/li>\n<li>Sales revenue must be greater than zero; if COGS exceeds revenue, the margin will be negative, which signals that goods are being sold below their direct cost.<\/li>\n<li>The interpretation thresholds (50% and 30%) are general benchmarks, not industry-specific targets. Always compare against peers in your sector.<\/li>\n<li>Gross profit margin says nothing about operating costs, financing, or taxes \u2014 a business with a healthy gross margin can still lose money overall.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Calculate gross profit margin and gross profit from your sales revenue and cost of goods sold (COGS). Enter two numbers to see what share of every sales dollar stays after production costs, plus an instant interpretation.<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[26],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-finance","tag-inventory"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":5,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":67458,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/119\/revisions\/67458"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}