How to Calculate COGS Percentage: Formula and Steps

To calculate your COGS percentage, divide your cost of goods sold by your total revenue and multiply by 100. If your business brought in $500,000 in revenue and spent $300,000 on the direct costs of producing or purchasing the goods you sold, your COGS percentage is 60%. This single number tells you how much of every sales dollar gets consumed by production costs before anything else gets paid.

The Formula

The math is straightforward:

COGS Percentage = (Cost of Goods Sold / Total Revenue) × 100

Both numbers come from your income statement. Revenue is your total sales for the period. COGS is the sum of all direct costs tied to producing or purchasing what you sold during that same period. The result is expressed as a percentage of revenue.

If a bakery generates $200,000 in annual revenue and its direct production costs total $130,000, the COGS percentage is ($130,000 / $200,000) × 100 = 65%. That means 65 cents of every dollar earned goes toward ingredients, direct labor, and other production costs.

What Counts as COGS

Getting an accurate COGS percentage depends entirely on including the right costs. COGS covers the direct costs of manufacturing or purchasing the products you sell. For a manufacturer, that means raw materials, direct labor (the workers assembling or producing the product), and manufacturing overhead like factory utilities or equipment depreciation. For a retailer, it’s primarily the wholesale cost of the inventory you purchased and resold.

Costs that are not directly tied to production stay out of the COGS calculation. Rent on your corporate office, marketing expenses, sales commissions, and administrative salaries are all operating expenses, not COGS. Including them would inflate your COGS percentage and distort your understanding of production efficiency. If a cost would exist even if you produced nothing, it probably does not belong in COGS.

How to Calculate COGS Itself

Before you can find your COGS percentage, you need the COGS dollar figure. If your accounting software does not generate it automatically, here is the standard formula:

COGS = Beginning Inventory + Purchases During the Period − Ending Inventory

Say you started the quarter with $80,000 in inventory, bought an additional $150,000 worth of goods, and ended the quarter with $70,000 still on hand. Your COGS for the quarter is $80,000 + $150,000 − $70,000 = $160,000. If your revenue for the quarter was $400,000, your COGS percentage is 40%.

How Inventory Valuation Changes the Number

The inventory method you use can shift your COGS percentage meaningfully, especially when prices are rising. The two most common methods are FIFO and LIFO.

FIFO (first in, first out) assumes you sell your oldest inventory first. When input costs are climbing, FIFO assigns the lower, earlier prices to COGS and leaves the newer, pricier inventory on the balance sheet. This produces a lower COGS percentage and higher reported profit.

LIFO (last in, first out) assumes you sell the most recently purchased inventory first. During inflation, LIFO assigns those higher recent costs to COGS, pushing the percentage up and reducing taxable income. Consider a simple example: a bakery produces 200 loaves on Monday at $1 each and 200 more on Tuesday at $1.25 each. If it sells 200 loaves on Wednesday, FIFO puts the COGS at $1 per loaf while LIFO puts it at $1.25 per loaf. That 25-cent difference, scaled across thousands of units, can noticeably change your COGS percentage and your bottom line.

When prices are stable, both methods produce similar results. But during periods of rising costs, the choice between FIFO and LIFO is worth understanding because it directly affects the percentage you calculate and the profitability picture it paints.

COGS Percentage and Gross Margin

Your COGS percentage and your gross profit margin are two sides of the same coin. Gross margin is the percentage of revenue left over after subtracting COGS:

Gross Margin = ((Revenue − COGS) / Revenue) × 100

If your COGS percentage is 60%, your gross margin is 40%. Together they always add up to 100%. A falling COGS percentage means your gross margin is improving, which typically signals that you are either controlling production costs better or commanding higher prices. A rising COGS percentage signals the opposite: your production costs are eating a larger share of each sale.

Gross margin is just the first layer of profitability. It does not account for operating expenses, interest, or taxes. But it is the most direct measure of how efficiently you turn raw inputs into revenue, which is exactly why tracking your COGS percentage over time matters.

Typical COGS Percentages by Industry

Your COGS percentage only means something in context. A 70% COGS ratio might be perfectly healthy in one industry and a warning sign in another. Data compiled by NYU Stern’s Aswath Damodaran shows how dramatically the number varies across sectors.

Industries that move physical goods tend to run high. Auto and truck manufacturing averages about 90%, steel around 88%, and basic chemicals roughly 91%. Grocery retail sits near 74%, while general retail comes in around 67%. These businesses operate on thin gross margins and depend on volume.

Service and software businesses sit at the other end. System and application software companies average about 28%, entertainment software around 34%, and investment management firms roughly 30%. Hotels and gaming operations average near 39%. These businesses have lower direct production costs relative to revenue, which leaves more room for gross profit but often comes with higher operating expenses elsewhere.

Restaurants and dining average about 68%, food processing around 77%, and semiconductor companies roughly 41%. If your number is significantly higher than the typical range for your industry, it is worth investigating whether your input costs are above market, your pricing is too low, or your production process has inefficiencies.

Putting the Calculation to Work

Calculating your COGS percentage once gives you a snapshot. Calculating it consistently, month over month or quarter over quarter, gives you a trend line that can reveal problems early. A creeping increase of two or three percentage points over several quarters might reflect rising supplier costs that you have not passed along through pricing. A sudden jump could indicate waste, theft, or an accounting error worth investigating.

You can also calculate the percentage for individual product lines or categories rather than the business as a whole. This lets you see which products contribute the most gross profit per dollar of revenue and which ones barely cover their direct costs. That information feeds directly into pricing decisions, product mix strategy, and supplier negotiations.

When comparing your number to competitors or industry averages, make sure you are comparing apples to apples. A company using LIFO during a period of rising costs will report a higher COGS percentage than an identical company using FIFO. Differences in what each business classifies as a direct cost can also skew comparisons. The most reliable use of the metric is tracking your own performance over time using a consistent accounting method.