Gross Profit Calculator (GP Calculator): 2026–2027 Profit Margin Formula, Markup Conversion & IRS COGS Rules
Gross Profit (GP) = Net Revenue − Cost of Goods Sold (COGS), and the profit margin formula is [(Net Revenue − COGS) ÷ Net Revenue] × 100! On $500,000 of net sales (after returns, allowances, and merchant discounts) with $200,000 in direct COGS, your business earns $300,000 in gross profit and a 60.0% gross profit percentage (equal to a 150.0% markup on cost). Under IRS Publication 334 and Rev. Proc. 2025-32 / Rev. Proc. 2026-35, small businesses averaging $32,000,000 or less in gross receipts in 2026 ($33,000,000 in 2027) are exempt from IRC § 263A Uniform Capitalization (UNICAP) overhead rules.Interactive 2026–2027 Gross Profit (GP), Gross & Net Margin, and Target Price Calculator
Calculator Overview: Simple two-box margin widgets ignore returns/discounts, freight-in, Schedule C inventory rolls, and operating SG&A expenses—causing founders to confuse markup with margin and misprice SKUs. Enter gross sales, returns/discounts, direct materials/inventory COGS, direct production labor/freight, SG&A overhead, and target GP% to compute exact GP dollars, gross and net margin, markup %, and required selling price.
70% Margin Pricing Trap: To achieve a 70% gross margin on $200,000 of COGS, divide COGS by (1 − 0.70) = 0.30 for a required revenue of $666,667—never multiply COGS by 1.70 ($340,000), which yields only a 41.2% margin!
How to Calculate Gross Profit, How Margins Are Calculated & Margin vs. Markup Conversion
When bookkeepers ask how do you calculate gross profit, how to get gross profit, or how do I figure out margin, the accounting boundary sits strictly between direct production costs above the line and Selling, General & Administrative (SG&A) period costs below the line (SEC Investor.gov Financial Glossary). On IRS Schedule C (Part III, Lines 35–42) or Corporate Form 1125-A (IRS Publication 334), you compute COGS via Beginning Inventory + Net Purchases + Direct Labor + Materials/Freight-In − Ending Inventory, and subtract COGS from Net Receipts to find GP.
Knowing how to figure margin (or how do you figure out margin, how calculate margin, and how to calculate the profit margin) versus markup prevents catastrophic SKU underpricing. Whenever operators ask what is profit percentage, how margin is calculated, or how to compute margin, find margin, determine margin, or count margin on an income statement, you always divide gross profit by net selling price (GP ÷ Price) via this calculator profit tool. Conversely, markup divides GP by unit cost (GP ÷ Cost). To find the selling price that delivers a desired margin M, use Selling Price = Unit Cost ÷ (1 − M).
| Target Gross Margin % | Required Selling Price | GP Per Unit | Equivalent Markup % | Typical U.S. Sector Benchmark |
|---|---|---|---|---|
| 20.0% Gross Margin | $125.00 | $25.00 | 25.0% Markup | Supermarkets, wholesale distribution, auto dealers |
| 33.3% Gross Margin | $150.00 | $50.00 | 50.0% Markup | Construction trades, light manufacturing, HVAC |
| 50.0% Gross Margin | $200.00 | $100.00 | 100.0% ('Keystone') | Apparel retail, DTC e-commerce, specialty goods |
| 70.0% Gross Margin | $333.33 | $233.33 | 233.3% Markup | B2B SaaS, digital agencies, specialty medical devices |
| 80.0% Gross Margin | $500.00 | $400.00 | 400.0% Markup | Enterprise cloud software, licensing, info products |
Comparing gross and net margin: gross margin measures production and pricing power before overhead, while net profit margin subtracts SG&A rent, marketing, executive payroll, interest, and income taxes from gross profit before dividing by net revenue.
Quick Reverse-Check Formula: Whenever a distributor quotes a wholesale cost and suggested retail price, verify both metrics in five seconds: if unit cost is $60 and retail price is $150, gross profit is $90, gross profit margin is $90 ÷ $150 = 60.0%, and markup is $90 ÷ $60 = 150.0%—keeping buyer negotiations anchored on true margin percentage.
The 2026–2027 Domino Effect: Discounting Destruction, IRC § 263A ($32M/$33M) Cliffs & Tariff COGS Traps
Small shifts in discounting or inventory tax accounting trigger a four-stage Domino Effect across unit volume requirements, IRS taxable income, and QBI deductions:
Domino 1 — Promotional Discount Volume Multiplier: On a 35% gross margin product ($100 price, $65 COGS, $35 GP), running a "15% off" promo cuts price to $85 while COGS stays $65—slashing unit GP by 42.9% (down to $20)! You must sell 75% more unit volume ($35 ÷ $20 = 1.75x) just to generate the exact same gross profit dollars.
Domino 2 — Crossing the $32M (2026) / $33M (2027) IRC § 263A UNICAP Cliff: Under Rev. Proc. 2025-32 and Rev. Proc. 2026-35, once 3-year average gross receipts exceed $32,000,000 in 2026 ($33,000,000 in 2027), IRC § 263A forces resellers and producers to capitalize indirect warehouse rent, utilities, purchasing payroll, and quality-control overhead into ending inventory (via Form 3115) rather than deducting them immediately—artificially inflating book GP and accelerating federal cash tax!
Domino 3 — FIFO vs. LIFO Inflation Phantom Profit: When supplier input costs rise 6%, FIFO (First-In, First-Out) matches old cheap inventory against current sales, creating taxable "phantom gross profit" that drains cash needed to replenish stock at higher 2026–2027 landed tariffs and freight rates.
Domino 4 — Gross Receipt State Taxes Ignore Low GP%: Businesses operating in gross-receipts states (Washington B&O, Ohio CAT, Nevada Commerce Tax over $4M) owe tax on top-line revenue even if COGS spikes and net margin turns negative.
| Baseline GP Margin | 5% Price Cut | 10% Price Cut | 15% Price Cut | 10% Price Increase Cushion |
|---|---|---|---|---|
| 25% Baseline GP% | +25.0% units needed | +66.7% units needed | +150.0% units needed | Can lose 28.6% volume & tie GP |
| 35% Baseline GP% | +16.7% units needed | +40.0% units needed | +75.0% units needed | Can lose 22.2% volume & tie GP |
| 50% Baseline GP% | +11.1% units needed | +25.0% units needed | +42.9% units needed | Can lose 16.7% volume & tie GP |
| 70% Baseline GP% | +7.7% units needed | +16.7% units needed | +27.3% units needed | Can lose 12.5% volume & tie GP |
GAAP & IRS Schedule C Cost of Goods Sold (COGS) vs. Operating Expense Matrix
To calculate for profit cleanly during an IRS audit or lender underwriting review, separate capitalizable product/direct-delivery costs from period overhead. Note that under IRS Pub. 334, personal withdrawals of merchandise by an owner must be subtracted from Schedule C Line 36 purchases so personal consumption never inflates business COGS.
| Expense Category | Line Placement | Impact on GP | IRS / GAAP Accounting Rule |
|---|---|---|---|
| Raw Materials, Wholesale Stock & Packaging | Included in COGS | Reduces GP | Schedule C Lines 36 & 38; matched when unit sells |
| Inbound Freight-In, Customs & Import Duties | Included in COGS | Reduces GP | Capitalized into landed unit inventory cost |
| Factory / Assembly W-2 Direct Labor | Included in COGS | Reduces GP | Schedule C Line 37; excludes sales/office salaries |
| Hosting / DevOps Servers Serving Paid SaaS Users | Included in COGS | Reduces GP | GAAP SaaS cost of revenue (excludes R&D coding) |
| Office Rent, Google/Meta Ads & Admin Payroll | Excluded (SG&A) | No GP impact | Deducted below GP toward Net Operating Profit |
Small business taxpayers below the $32,000,000 (2026) / $33,000,000 (2027) IRC § 471(c) gross receipts threshold may treat inventory as non-incidental materials and supplies or follow their applicable financial statement (AFS) method without complex UNICAP absorption ratios.
Frequently Asked Questions
How do you calculate the gross profit and gross profit margin?
Subtract Cost of Goods Sold (COGS) from Net Revenue: Gross Profit = Net Revenue − COGS. To find gross profit margin percentage, divide Gross Profit by Net Revenue and multiply by 100: (GP ÷ Net Revenue) × 100.
Is 30% gross profit margin good?
In grocery, automotive, construction, or wholesale distribution (where norms run 15%–28%), a 30% gross margin is strong. However, in DTC e-commerce (45%–60% needed to cover ad spend) or B2B SaaS (70%–85% benchmark), 30% leaves too little gross profit to cover operating overhead.
How to calculate 70% gross profit margin on a product?
Divide your unit landed COGS by (1 − 0.70) = 0.30. If a product costs $30 to manufacture and ship in, $30 ÷ 0.30 = $100.00 selling price—producing $70 gross profit and an exact 70.0% gross margin.
How do I figure margin vs. net profit margin?
Gross margin deducts only direct inventory, raw materials, freight-in, and production labor ((Revenue − COGS) ÷ Revenue). Net profit margin deducts every expense—COGS, SG&A salaries, marketing, rent, loan interest, and taxes—before dividing by revenue.
Who is exempt from IRS Section 263A UNICAP inventory rules in 2026–2027?
Under IRC § 263A(i) and § 448(c), businesses (other than tax shelters) whose prior 3-year average annual gross receipts do not exceed $32,000,000 for 2026 (Rev. Proc. 2025-32) or $33,000,000 for 2027 (Rev. Proc. 2026-35) are 100% exempt from UNICAP overhead capitalization.
Official Statutory & Agency Sources
- Internal Revenue Service — Publication 334: Tax Guide for Small Business (Figuring Gross Profit & COGS)
- IRS Revenue Procedure 2025-32 — 2026 IRC § 448(c) / § 263A $32,000,000 Small Business Gross Receipts Threshold
- IRS Revenue Procedure 2026-35 — 2027 IRC § 448(c) / § 263A $33,000,000 Inflation Adjustment
- U.S. Securities and Exchange Commission (Investor.gov) — Gross Profit & Financial Statement Standards
Last verified against primary federal and state statutory schedules on .