{"product_id":"gross-margin","title":"Gross Margin Calculator","description":"\u003cstyle\u003e\n.gm-calculator {\n  --ink: #0f172a;\n  --muted: #475569;\n  --border: #e2e8f0;\n  --surface: #ffffff;\n  --tint: #f8fafc;\n  --primary: #1d4ed8;\n  --accent: #c2410c;\n  --accent-hover: #9a3412;\n  --chart-1: #1e40af;\n  --chart-2: #0d9488;\n  --chart-3: #7c3aed;\n  --chart-4: #be185d;\n  --chart-5: #334155;\n  color: var(--ink);\n  background: var(--tint);\n  border: 1px solid var(--border);\n  border-radius: 8px;\n  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);\n  container-type: inline-size;\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n  font-size: 15px;\n  line-height: 1.55;\n  margin: 0 auto;\n  max-width: 1200px;\n  overflow-wrap: anywhere;\n  padding: 24px;\n  width: 100%;\n}\n.gm-calculator,\n.gm-calculator *,\n.gm-calculator *::before,\n.gm-calculator *::after { box-sizing: border-box; }\n.gm-calculator \u003e *,\n.gm-calculator .gm-workspace \u003e *,\n.gm-calculator .gm-chart-cluster \u003e *,\n.gm-calculator .gm-result-grid \u003e *,\n.gm-calculator .gm-field-grid \u003e * { min-width: 0; }\n.gm-calculator h2,\n.gm-calculator h3,\n.gm-calculator p { margin-top: 0; }\n.gm-calculator .gm-header { margin-bottom: 16px; }\n.gm-calculator .gm-title { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }\n.gm-calculator .gm-subtitle { color: var(--muted); margin-bottom: 12px; max-width: 760px; }\n.gm-calculator .gm-pills { display: flex; flex-wrap: wrap; gap: 8px; }\n.gm-calculator .gm-pill { align-items: baseline; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); display: inline-flex; font-size: 13px; font-weight: 500; gap: 6px; padding: 4px 10px; }\n.gm-calculator .gm-pill-value { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }\n.gm-calculator .gm-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }\n.gm-calculator .gm-button { align-items: center; border: 1px solid transparent; border-radius: 6px; cursor: pointer; display: inline-flex; font: inherit; font-size: 15px; font-weight: 650; gap: 10px; justify-content: center; line-height: 1.2; min-height: 46px; padding: 12px 18px; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; white-space: nowrap; }\n.gm-calculator .gm-button:hover { box-shadow: 0 2px 5px rgba(15, 23, 42, .12); transform: translateY(-1px); }\n.gm-calculator .gm-button:active { transform: translateY(0); }\n.gm-calculator .gm-button:focus-visible,\n.gm-calculator input:focus-visible,\n.gm-calculator select:focus-visible,\n.gm-calculator summary:focus-visible,\n.gm-calculator a:focus-visible { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 2px; }\n.gm-calculator .gm-download { background: var(--accent); color: #ffffff; }\n.gm-calculator .gm-download:hover { background: var(--accent-hover); }\n.gm-calculator .gm-reset { background: var(--surface); border-color: #94a3b8; color: var(--ink); }\n.gm-calculator .gm-icon { flex: 0 0 auto; height: 18px; width: 18px; }\n.gm-calculator .gm-workspace { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }\n.gm-calculator .gm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); padding: 20px; }\n.gm-calculator .gm-section-title { font-size: 18px; font-weight: 650; line-height: 1.35; margin-bottom: 12px; }\n.gm-calculator .gm-section-copy { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 16px; }\n.gm-calculator .gm-field-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }\n.gm-calculator .gm-field { display: flex; flex-direction: column; min-width: 0; }\n.gm-calculator .gm-label { color: var(--ink); display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }\n.gm-calculator .gm-input-shell { align-items: center; background: var(--surface); border: 1px solid #94a3b8; border-radius: 6px; display: flex; min-height: 46px; transition: border-color .15s ease, box-shadow .15s ease; }\n.gm-calculator .gm-input-shell:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }\n.gm-calculator .gm-prefix { color: var(--muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; padding-left: 12px; }\n.gm-calculator .gm-input { background: transparent; border: 0; color: var(--ink); flex: 1 1 auto; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 0; outline: 0; padding: 11px 12px 11px 6px; width: 100%; }\n.gm-calculator .gm-help { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.45; margin: 6px 0 0; min-height: 38px; }\n.gm-calculator .gm-error { color: #b91c1c; font-size: 13px; font-weight: 600; line-height: 1.4; margin: 4px 0 0; min-height: 18px; }\n.gm-calculator .gm-results { display: flex; flex-direction: column; }\n.gm-calculator .gm-primary-result { background: var(--tint); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; padding: 16px; }\n.gm-calculator .gm-result-label { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }\n.gm-calculator .gm-primary-value { font-size: 30px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }\n.gm-calculator .gm-interpretation { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 0; }\n.gm-calculator .gm-result-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }\n.gm-calculator .gm-result-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; }\n.gm-calculator .gm-result-value { font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.25; margin-bottom: 3px; }\n.gm-calculator .gm-live { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }\n.gm-calculator .gm-breakdown { margin-bottom: 16px; }\n.gm-calculator .gm-chart-card { display: flex; flex-direction: column; }\n.gm-calculator .gm-chart-intro { color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 16px; }\n.gm-calculator .gm-chart-cluster { align-items: center; display: grid; gap: 24px; grid-template-columns: 1fr; justify-content: center; margin: 0 auto; max-width: 760px; width: 100%; }\n.gm-calculator .gm-chart-visual { align-items: center; display: flex; justify-content: center; margin: 0 auto; max-width: 320px; min-height: 220px; width: 100%; }\n.gm-calculator .gm-chart-svg { display: block; height: auto; max-height: 320px; max-width: 320px; width: 100%; }\n.gm-calculator .gm-chart-center-label { fill: var(--muted); font-size: 13px; font-weight: 600; text-anchor: middle; }\n.gm-calculator .gm-chart-center-value { fill: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 700; text-anchor: middle; }\n.gm-calculator .gm-legend { display: grid; gap: 10px; justify-content: center; width: 100%; }\n.gm-calculator .gm-legend-row { align-items: center; display: grid; font-size: 13px; font-weight: 500; gap: 8px 12px; grid-template-columns: 12px minmax(90px, max-content) max-content max-content; justify-content: start; }\n.gm-calculator .gm-swatch { border-radius: 2px; height: 12px; width: 12px; }\n.gm-calculator .gm-legend-name { color: var(--ink); }\n.gm-calculator .gm-legend-number,\n.gm-calculator .gm-legend-percent { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }\n.gm-calculator .gm-chart-caption { background: var(--tint); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 16px; padding: 10px 12px; }\n.gm-calculator .gm-chart-empty { background: var(--tint); border: 1px dashed #94a3b8; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin: 0 auto; max-width: 520px; padding: 16px; text-align: center; width: 100%; }\n.gm-calculator .gm-chart-data { margin-top: 16px; }\n.gm-calculator .gm-safe-stack .gm-chart-cluster { gap: 16px; grid-template-columns: 1fr; max-width: 560px; }\n.gm-calculator .gm-safe-stack .gm-chart-visual { min-height: 0; }\n.gm-calculator .gm-safe-stack .gm-legend { margin-top: 12px; }\n.gm-calculator .gm-safe-stack .gm-chart-caption { margin-top: 20px; }\n.gm-calculator .gm-table-card { margin-bottom: 16px; }\n.gm-calculator .gm-table-wrap { max-width: 100%; overflow-x: auto; }\n.gm-calculator table { border-collapse: collapse; font-size: 14px; min-width: 560px; width: 100%; }\n.gm-calculator th,\n.gm-calculator td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }\n.gm-calculator th { background: #e2e8f0; color: var(--ink); font-size: 13px; font-weight: 700; }\n.gm-calculator td.gm-numeric { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }\n.gm-calculator tbody tr:hover { background: #fafafa; }\n.gm-calculator .gm-table-note { background: var(--tint); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 16px; padding: 10px 12px; }\n.gm-calculator .gm-safe-table-stack .gm-table-note { margin-top: 20px; }\n.gm-calculator .gm-education { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }\n.gm-calculator .gm-education h2 { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }\n.gm-calculator .gm-education h3 { font-size: 18px; font-weight: 650; line-height: 1.4; margin: 24px 0 8px; }\n.gm-calculator .gm-education p { color: #334155; margin-bottom: 12px; }\n.gm-calculator .gm-education ul { color: #334155; margin: 0 0 16px; padding-left: 22px; }\n.gm-calculator .gm-education li { margin-bottom: 8px; }\n.gm-calculator .gm-education a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }\n.gm-calculator .gm-formula { background: var(--tint); border-left: 4px solid var(--primary); border-radius: 0 6px 6px 0; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; margin: 12px 0 16px; padding: 12px 14px; }\n@container (min-width: 640px) {\n  .gm-calculator .gm-chart-cluster { align-items: end; grid-template-columns: minmax(240px, 320px) minmax(260px, max-content); }\n}\n@container (min-width: 900px) {\n  .gm-calculator .gm-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }\n}\n@container (max-width: 639px) {\n  .gm-calculator { padding: 16px; }\n  .gm-calculator .gm-card { padding: 16px; }\n  .gm-calculator .gm-toolbar { align-items: stretch; }\n  .gm-calculator .gm-button { flex: 1 1 100%; }\n  .gm-calculator .gm-field-grid { grid-template-columns: 1fr; }\n  .gm-calculator .gm-chart-cluster { gap: 16px; }\n  .gm-calculator .gm-chart-visual { min-height: 0; }\n  .gm-calculator .gm-legend-row { grid-template-columns: 12px minmax(82px, max-content) max-content max-content; }\n  .gm-calculator .gm-chart-caption { margin-top: 16px; }\n  .gm-calculator .gm-education { padding: 18px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .gm-calculator .gm-button { transition: none; }\n}\n\u003c\/style\u003e\n\u003cdiv class=\"gm-calculator\" data-calculator-root\u003e\n  \u003csection class=\"gm-header\" aria-labelledby=\"gm-title\"\u003e\n    \u003ch2 class=\"gm-title\" id=\"gm-title\"\u003eGross Margin Calculator\u003c\/h2\u003e\n    \u003cp class=\"gm-subtitle\"\u003eMeasure how much revenue remains after direct product or service costs, then see the result as dollars and a percentage of sales.\u003c\/p\u003e\n    \u003cdiv class=\"gm-pills\" aria-label=\"Live calculator summary\"\u003e\n      \u003cspan class=\"gm-pill\"\u003eRevenue \u003cspan class=\"gm-pill-value\" data-gm-pill-revenue\u003e$1,000,000.00\u003c\/span\u003e\u003c\/span\u003e\n      \u003cspan class=\"gm-pill\"\u003eGross profit \u003cspan class=\"gm-pill-value\" data-gm-pill-profit\u003e$650,000.00\u003c\/span\u003e\u003c\/span\u003e\n      \u003cspan class=\"gm-pill\"\u003eGross margin \u003cspan class=\"gm-pill-value\" data-gm-pill-margin\u003e65.00%\u003c\/span\u003e\u003c\/span\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003cdiv class=\"gm-toolbar\" aria-label=\"Calculator actions\"\u003e\n    \u003cbutton class=\"gm-button gm-download\" type=\"button\" data-gm-download\u003e\n      \u003csvg class=\"gm-icon\" viewbox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\"\u003e\u003cpath fill=\"currentColor\" d=\"M12 3a1 1 0 0 1 1 1v8.59l2.3-2.29a1 1 0 1 1 1.4 1.42l-4 3.97a1 1 0 0 1-1.4 0l-4-3.97a1 1 0 1 1 1.4-1.42l2.3 2.29V4a1 1 0 0 1 1-1Zm-7 13a1 1 0 0 1 1 1v2h12v-2a1 1 0 1 1 2 0v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\n      \u003cspan\u003eDownload Excel\u003c\/span\u003e\n    \u003c\/button\u003e\n    \u003cbutton class=\"gm-button gm-reset\" type=\"button\" data-gm-reset\u003eReset\u003c\/button\u003e\n  \u003c\/div\u003e\n\n  \u003cdiv class=\"gm-workspace\"\u003e\n    \u003csection class=\"gm-card gm-inputs\" aria-labelledby=\"gm-inputs-title\"\u003e\n      \u003ch3 class=\"gm-section-title\" id=\"gm-inputs-title\"\u003eBusiness inputs\u003c\/h3\u003e\n      \u003cp class=\"gm-section-copy\"\u003eEnter figures from the same reporting period and accounting basis.\u003c\/p\u003e\n      \u003cdiv class=\"gm-field-grid\"\u003e\n        \u003cdiv class=\"gm-field\"\u003e\n          \u003clabel class=\"gm-label\" for=\"gm-revenue\"\u003eRevenue\u003c\/label\u003e\n          \u003cdiv class=\"gm-input-shell\"\u003e\n            \u003cspan class=\"gm-prefix\" aria-hidden=\"true\"\u003e$\u003c\/span\u003e\n            \u003cinput class=\"gm-input\" id=\"gm-revenue\" data-gm-revenue type=\"text\" inputmode=\"decimal\" autocomplete=\"off\" value=\"1,000,000.00\" aria-describedby=\"gm-revenue-help gm-revenue-error\"\u003e\n          \u003c\/div\u003e\n          \u003cp class=\"gm-help\" id=\"gm-revenue-help\"\u003eTotal sales before subtracting direct costs, in U.S. dollars.\u003c\/p\u003e\n          \u003cp class=\"gm-error\" id=\"gm-revenue-error\" data-gm-revenue-error aria-live=\"polite\"\u003e\u003c\/p\u003e\n        \u003c\/div\u003e\n        \u003cdiv class=\"gm-field\"\u003e\n          \u003clabel class=\"gm-label\" for=\"gm-cogs\"\u003eCost of goods sold (COGS)\u003c\/label\u003e\n          \u003cdiv class=\"gm-input-shell\"\u003e\n            \u003cspan class=\"gm-prefix\" aria-hidden=\"true\"\u003e$\u003c\/span\u003e\n            \u003cinput class=\"gm-input\" id=\"gm-cogs\" data-gm-cogs type=\"text\" inputmode=\"decimal\" autocomplete=\"off\" value=\"350,000.00\" aria-describedby=\"gm-cogs-help gm-cogs-error\"\u003e\n          \u003c\/div\u003e\n          \u003cp class=\"gm-help\" id=\"gm-cogs-help\"\u003eDirect costs attributable to the goods or services sold.\u003c\/p\u003e\n          \u003cp class=\"gm-error\" id=\"gm-cogs-error\" data-gm-cogs-error aria-live=\"polite\"\u003e\u003c\/p\u003e\n        \u003c\/div\u003e\n      \u003c\/div\u003e\n    \u003c\/section\u003e\n\n    \u003csection class=\"gm-card gm-results\" aria-labelledby=\"gm-results-title\"\u003e\n      \u003ch3 class=\"gm-section-title\" id=\"gm-results-title\"\u003eLive results\u003c\/h3\u003e\n      \u003cdiv class=\"gm-primary-result\"\u003e\n        \u003cdiv class=\"gm-result-label\"\u003eGross margin\u003c\/div\u003e\n        \u003cdiv class=\"gm-primary-value\" data-gm-margin\u003e65.00%\u003c\/div\u003e\n        \u003cp class=\"gm-interpretation\" data-gm-interpretation\u003eFor each $1.00 of revenue, $0.65 remains after COGS to cover operating expenses, taxes, financing, and profit.\u003c\/p\u003e\n      \u003c\/div\u003e\n      \u003cdiv class=\"gm-result-grid\"\u003e\n        \u003cdiv class=\"gm-result-card\"\u003e\n          \u003cdiv class=\"gm-result-label\"\u003eGross profit\u003c\/div\u003e\n          \u003cdiv class=\"gm-result-value\" data-gm-profit\u003e$650,000.00\u003c\/div\u003e\n        \u003c\/div\u003e\n        \u003cdiv class=\"gm-result-card\"\u003e\n          \u003cdiv class=\"gm-result-label\"\u003eCOGS as % of revenue\u003c\/div\u003e\n          \u003cdiv class=\"gm-result-value\" data-gm-cogs-percent\u003e35.00%\u003c\/div\u003e\n        \u003c\/div\u003e\n        \u003cdiv class=\"gm-result-card\"\u003e\n          \u003cdiv class=\"gm-result-label\"\u003eMarkup on COGS\u003c\/div\u003e\n          \u003cdiv class=\"gm-result-value\" data-gm-markup\u003e185.71%\u003c\/div\u003e\n        \u003c\/div\u003e\n      \u003c\/div\u003e\n      \u003cdiv class=\"gm-live\" data-gm-live aria-live=\"polite\"\u003e\u003c\/div\u003e\n    \u003c\/section\u003e\n  \u003c\/div\u003e\n\n  \u003csection class=\"gm-card gm-breakdown gm-chart-card\" data-gm-chart-card aria-labelledby=\"gm-chart-title\"\u003e\n    \u003ch3 class=\"gm-section-title\" id=\"gm-chart-title\"\u003eRevenue composition\u003c\/h3\u003e\n    \u003cp class=\"gm-chart-intro\" data-gm-chart-intro\u003eThe chart divides current revenue between direct costs and gross profit.\u003c\/p\u003e\n    \u003cdiv class=\"gm-chart-cluster\" data-gm-chart-cluster\u003e\n      \u003cdiv class=\"gm-chart-visual\" data-gm-chart-visual\u003e\u003c\/div\u003e\n      \u003cdiv class=\"gm-legend\" data-gm-legend aria-label=\"Revenue composition legend\"\u003e\u003c\/div\u003e\n    \u003c\/div\u003e\n    \u003cdiv class=\"gm-chart-caption\" data-gm-chart-caption\u003e\u003c\/div\u003e\n    \u003cdiv class=\"gm-chart-data\"\u003e\n      \u003cdiv class=\"gm-table-wrap\" data-gm-chart-table-wrap\u003e\n        \u003ctable aria-label=\"Revenue composition data\"\u003e\n          \u003cthead\u003e\u003ctr\u003e\n\u003cth scope=\"col\"\u003eCategory\u003c\/th\u003e\n\u003cth scope=\"col\"\u003eAmount\u003c\/th\u003e\n\u003cth scope=\"col\"\u003eShare of revenue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n          \u003ctbody data-gm-chart-table\u003e\u003c\/tbody\u003e\n        \u003c\/table\u003e\n      \u003c\/div\u003e\n    \u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"gm-card gm-table-card\" data-gm-table-card aria-labelledby=\"gm-detail-title\"\u003e\n    \u003ch3 class=\"gm-section-title\" id=\"gm-detail-title\"\u003eCalculation detail\u003c\/h3\u003e\n    \u003cdiv class=\"gm-table-wrap\" data-gm-detail-wrap\u003e\n      \u003ctable aria-label=\"Gross margin calculation detail\"\u003e\n        \u003cthead\u003e\u003ctr\u003e\n\u003cth scope=\"col\"\u003eMetric\u003c\/th\u003e\n\u003cth scope=\"col\"\u003eCurrent value\u003c\/th\u003e\n\u003cth scope=\"col\"\u003eHow it is calculated\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n        \u003ctbody data-gm-detail-table\u003e\u003c\/tbody\u003e\n      \u003c\/table\u003e\n    \u003c\/div\u003e\n    \u003cdiv class=\"gm-table-note\" data-gm-table-note\u003eGross margin isolates direct cost efficiency. It does not subtract operating expenses, interest, taxes, depreciation, or other below-gross-profit items.\u003c\/div\u003e\n  \u003c\/section\u003e\n\n  \u003csection class=\"gm-education\" aria-labelledby=\"gm-guide-title\"\u003e\n    \u003ch2 id=\"gm-guide-title\"\u003eHow to use and interpret gross margin\u003c\/h2\u003e\n    \u003cp\u003eThis calculator estimates gross profit and gross margin from two figures: revenue and cost of goods sold. It is designed for a single reporting period, such as a month, quarter, or year. Both inputs must cover the same period and use a consistent accounting basis. The result helps you evaluate pricing and direct-cost efficiency before overhead and other operating expenses are considered.\u003c\/p\u003e\n\n    \u003ch3\u003eWhat should be entered as revenue?\u003c\/h3\u003e\n    \u003cp\u003eRevenue is the sales amount earned from customers before deducting COGS. Use net sales when returns, allowances, and sales discounts are material and your financial statements present revenue that way. Revenue is required for a meaningful percentage calculation. A higher revenue figure increases gross profit when COGS stays fixed, while a lower figure reduces it. Entering revenue from one period and COGS from another is a common error that makes the margin misleading.\u003c\/p\u003e\n    \u003cp\u003eThe U.S. Securities and Exchange Commission provides a practical overview of how income statements organize revenue, costs, and profit in its guidance on \u003ca href=\"https:\/\/www.sec.gov\/resources-small-businesses\/capital-raising-building-blocks\/financial-statements\" target=\"_blank\" rel=\"noopener noreferrer\"\u003efinancial statements\u003c\/a\u003e.\u003c\/p\u003e\n\n    \u003ch3\u003eWhat belongs in cost of goods sold?\u003c\/h3\u003e\n    \u003cp\u003eCOGS includes costs directly tied to the goods or services sold. Depending on the business, this may include purchased inventory, raw materials, production labor, packaging, freight-in, manufacturing overhead allocated to production, or direct delivery labor. It usually excludes selling, general, and administrative costs that would still exist even if no additional unit were sold. The exact classification should follow the accounting policy used in your records.\u003c\/p\u003e\n    \u003cp\u003eHigher COGS lowers both gross profit and gross margin when revenue is unchanged. Lower COGS improves them. COGS is required for the full calculation, although entering zero can be useful for testing a service or digital-product scenario with no recognized direct cost. The IRS discussion of \u003ca href=\"https:\/\/www.irs.gov\/publications\/p334\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ecost of goods sold and inventory\u003c\/a\u003e offers additional context for U.S. small businesses; tax treatment can differ from management reporting, so use the figures appropriate to your purpose.\u003c\/p\u003e\n\n    \u003ch3\u003eHow are gross profit and gross margin calculated?\u003c\/h3\u003e\n    \u003cdiv class=\"gm-formula\"\u003eGross profit = Revenue − COGS\u003cbr\u003eGross margin = Gross profit ÷ Revenue × 100%\u003c\/div\u003e\n    \u003cp\u003eGross profit is the dollar amount left after direct costs. Gross margin expresses that amount as a percentage of revenue, making it easier to compare periods or businesses of different sizes. With revenue of $1,000,000 and COGS of $350,000, gross profit is $650,000 and gross margin is 65.00%.\u003c\/p\u003e\n    \u003cp\u003eThe COGS percentage is the complement of gross margin when gross profit is nonnegative: a 35% COGS rate corresponds to a 65% gross margin. Markup is different. Markup divides gross profit by COGS rather than revenue. In the example, the markup on COGS is 185.71%, even though the gross margin is 65.00%. Confusing markup with margin can lead to underpricing.\u003c\/p\u003e\n\n    \u003ch3\u003eHow should each result be interpreted?\u003c\/h3\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eGross margin\u003c\/strong\u003e shows the share of each revenue dollar remaining after direct costs. A positive value means sales exceed COGS. Zero means revenue exactly equals COGS. A negative value means direct costs exceed revenue.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eGross profit\u003c\/strong\u003e is the dollar pool available to cover payroll outside production, rent, marketing, technology, administration, interest, taxes, and net profit. A large percentage can still produce insufficient dollars if sales volume is low.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eCOGS as a percentage of revenue\u003c\/strong\u003e shows how much of sales is consumed by direct costs. It moves inversely to gross margin when the same definitions are used.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eMarkup on COGS\u003c\/strong\u003e indicates gross profit relative to direct cost. It is unavailable when COGS is zero because division by zero has no finite result.\u003c\/li\u003e\n    \u003c\/ul\u003e\n\n    \u003ch3\u003eHow should the chart and table be read?\u003c\/h3\u003e\n    \u003cp\u003eThe revenue composition chart divides revenue into COGS and gross profit whenever those values form a valid nonnegative whole. The legend and chart-data table use the same current calculation, so the amounts and percentages should reconcile to total revenue. If COGS exceeds revenue, gross profit is negative and a part-to-whole donut would be misleading; the calculator therefore replaces it with an explanatory empty state while retaining the exact negative result in the result cards and detail table.\u003c\/p\u003e\n    \u003cp\u003eThe detail table shows every major metric and formula. Use it to reconcile the percentage result to the underlying dollars. The Excel export captures the current inputs and outputs, including the same breakdown and explanatory notes, so a changed scenario can be documented immediately.\u003c\/p\u003e\n\n    \u003ch3\u003eWhat can change gross margin over time?\u003c\/h3\u003e\n    \u003cp\u003ePricing, discounts, product mix, supplier terms, wage rates, freight, waste, returns, and production efficiency can all move gross margin. Inflation may raise selling prices and input costs at different speeds. The U.S. Bureau of Labor Statistics \u003ca href=\"https:\/\/www.bls.gov\/ppi\/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eProducer Price Index\u003c\/a\u003e can provide external context for changes in business input and output prices, but company-specific purchasing and pricing data should drive your analysis.\u003c\/p\u003e\n    \u003cp\u003eCompare margin trends using consistent classifications. Reclassifying fulfillment labor or freight between COGS and operating expenses can change gross margin without changing total profit. Also avoid assuming that a “good” margin is universal: capital intensity, inventory risk, customer acquisition expense, recurring revenue, and competitive structure vary widely by industry. The U.S. Small Business Administration’s guidance on \u003ca href=\"https:\/\/www.sba.gov\/business-guide\/manage-your-business\/manage-your-finances\" target=\"_blank\" rel=\"noopener noreferrer\"\u003emanaging business finances\u003c\/a\u003e can help place gross margin within broader budgeting and cash-flow controls.\u003c\/p\u003e\n\n    \u003ch3\u003eCommon mistakes and practical tradeoffs\u003c\/h3\u003e\n    \u003cp\u003eFrequent mistakes include mixing gross and net revenue, omitting direct labor, including unrelated overhead in COGS, comparing periods with different product mixes, and using markup as though it were margin. Improving margin by raising prices can reduce volume; cutting direct cost can affect quality or lead times; pursuing high-volume low-margin sales can consume working capital. Use gross margin with operating margin, cash flow, unit economics, and customer retention metrics rather than treating it as a complete measure of business health.\u003c\/p\u003e\n  \u003c\/section\u003e\n\u003c\/div\u003e","brand":"FinancialModelsLab","offers":[{"title":"Default Title","offer_id":49909483667699,"sku":"gross-margin","price":0.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0522\/6191\/2762\/files\/gross-margin.webp?v=1783935432","url":"https:\/\/financialmodelslab.com\/products\/gross-margin","provider":"Financial Models Lab","version":"1.0","type":"link"}