Weighted average cost of goods sold is the total cost of every identical unit you paid to produce, divided by the number of units, then multiplied by the units you sold. For a print-on-demand store fulfilling the same product through more than one supplier at shifting base prices, it collapses all of that into one blended per-unit cost — so your COGS line stops swinging every time a supplier re-prices, and your margin math holds steady.

Most accounting tutorials for this keyword stop at a warehouse full of widgets. You don't have a warehouse. You have a Shopify store, a couple of POD suppliers, and base costs that move without warning — which is exactly the situation the weighted average method was built for.

What is weighted average cost of goods sold?

The weighted average method averages the cost of all units available to sell during a period, then applies that single average to both what you sold and what's left (AccountingTools). The result lands between your cheapest and most expensive units.

For a stocked retailer, "units available" means physical inventory. For POD, you hold no stock — so think of it as every unit you've paid a supplier to produce at a given price. When the same tee comes off Printify at one base cost and Printful at another, weighted average gives you one number to run profit against.

That matters because your supplier base price is not fixed. Printify runs provider price changes, Printful adjusts by region, and you route orders between them for speed or cost. Without a blending method, your COGS is a moving target.

The weighted average COGS formula

Two steps. First the per-unit cost:

Weighted average unit cost = total cost of all units available ÷ total number of units available

Then the expense itself:

Weighted average COGS = units sold × weighted average unit cost

Compare that to how cost of goods sold differs from operating expenses: COGS is the direct cost of the units that left your store this period. Weighted average is just which cost you assign to each of those units.

Worked example: one blended cost across two suppliers

Say you sell one best-selling tee and fulfilled it through two suppliers this month, with a mid-month price bump on one of them:

Source Units Base cost each Line cost
Printify (first run) 120 $12.00 $1,440.00
Printful 80 $14.50 $1,160.00
Printify (after price bump) 50 $12.80 $640.00
Total available 250 — $3,240.00

Weighted average unit cost = $3,240.00 ÷ 250 = $12.96 per unit.

If you sold 230 of those tees this month, your weighted average COGS is 230 × $12.96 = $2,980.80. The 20 unsold units you'd already paid for carry at 20 × $12.96 = $259.20. No supplier-by-supplier bookkeeping per order — one blended rate does it.

Periodic vs. moving (perpetual) weighted average

There are two ways to run the method, and the difference is when you recompute the average.

Periodic calculates one average for the whole period, after it closes — the example above. Simple, but it treats a sale early in the month at the same cost as one late in the month.

Moving (perpetual) recomputes the average after every new batch of units, so each sale is costed at the average that existed at that moment. More precise, more data discipline required.

Moving average worked example

Start the month holding 100 units at $12.00 ($1,200.00):

  • Produce 60 more at $14.00 (+$840.00). Now 160 units for $1,200.00 + $840.00 = $2,040.00 → average $12.75.
  • Sell 90 units: COGS = 90 × $12.75 = $1,147.50. Left: 70 units at $12.75 = $892.50.
  • Produce 50 more at $13.20 (+$660.00). Now 120 units for $892.50 + $660.00 = $1,552.50 → average $12.94.
  • Sell 40 units: COGS = 40 × $12.94 = $517.60.

Month's moving-average COGS = $1,147.50 + $517.60 = $1,665.10. Run the same month periodically and you'd get a close but different figure — the gap is pure timing, not real money. Pick one method and stay on it so your trend lines are comparable.

Weighted average COGS vs. FIFO and LIFO

FIFO assigns the cost of your oldest units to each sale; LIFO assigns the newest. Weighted average splits the difference and ignores order entirely.

For POD, FIFO and LIFO are mostly ceremony — there is no aging stock to rotate, because nothing is printed until it's sold. What you actually have is the same SKU produced at different prices across suppliers and across time. Weighted average is the method that matches that reality, and it's the one most light inventory and order systems default to. If you also sell on a marketplace, the mechanics carry over — see how Amazon cost of goods sold handles the same blending across fulfillment paths.

The one caution: a blended cost hides which supplier is eroding your margin. The average tells you the portfolio cost; it won't flag that one supplier is quietly dearer per unit than another on the identical blank. You need the blended number for the books and the per-supplier number for sourcing decisions.

From weighted average COGS to true per-order profit

Here's the angle the accounting tutorials skip: a COGS number on its own tells you nothing about whether an order made money. You have to carry it all the way to per-order profit.

Say your store runs 340 orders a month at a $31 average order value, with $2,800 a month in Meta spend. Allocate that ad spend evenly and each order carries $2,800 ÷ 340 = $8.24 in acquisition cost. Walk one order down:

Line item Amount
Retail (AOV) $31.00
Weighted average COGS -$12.96
Supplier shipping -$4.50
Payment processing (say) -$1.20
Allocated ad spend -$8.24
Per-order profit $4.10

That bottom-line per-order profit is the number that actually matters, and the weighted average COGS is load-bearing inside it. Nudge your blended cost up by a dollar — one supplier price change you didn't notice — and you've wiped out a quarter of the profit on every order. This is the same discipline that separates COGS from operating expenses: direct per-unit cost belongs above the line, and it has to be right.

The next step, once you can calculate it, is recording cost of goods sold correctly in your books so the number flows through to your P&L instead of living in a spreadsheet. For the full picture of how these pieces fit, the ecommerce ops economics hub ties COGS, fees, and margin together.

Where Victor fits

Keeping a weighted average current across Printify, Printful, and Gelato — while every supplier re-prices on its own schedule — is exactly the grind that gets skipped at the end of a busy week. PodVector AI's Victor is an AI employee that reads your live supplier costs and Shopify orders, blends them, and computes true per-order profit for you, pulling Meta and Google Ads spend into the same math. Victor does the calculation and delivers the report to your Google Drive. If you want the blended cost and the per-order profit done for you, try Victor free.

FAQs

Is weighted average cost of goods sold the same as average cost?

Yes — "weighted average cost," "average cost," and the "weighted average cost method" all name the same approach: total cost of available units divided by total units, applied to what you sold. "Weighted" just stresses that each batch counts in proportion to its quantity, so a 200-unit run moves the average more than a 20-unit run. Don't confuse it with a simple average of the per-unit prices, which would ignore quantity and give you the wrong number.

Does weighted average even apply to print-on-demand if I hold no inventory?

It does, and arguably it fits POD better than FIFO or LIFO. You're not blending aging stock — you're blending the same product produced at different base prices across suppliers and across time. That's precisely what the weighted average method resolves into one usable per-unit cost. The only adjustment is mental: "units available" means units you paid to produce, not units sitting on a shelf.

Should I use periodic or moving average?

If you reconcile once a month and your supplier prices are fairly stable, periodic is simpler and accurate enough. If prices move often or you want per-order profit to reflect the cost at the moment each order shipped, moving average is worth the extra data discipline. Whichever you choose, stay consistent — switching mid-year makes your month-over-month margins impossible to compare.

How does weighted average COGS change my per-order profit?

It sets the single largest controllable cost inside each order. Because the blended rate applies to every unit equally, a small error or a missed supplier price change scales across your whole order volume at once. Getting the weighted average right is what makes the rest of your per-order profit math trustworthy.

What's the risk of relying only on a blended average?

It smooths away the signal you need for sourcing. A blended $12.96 can hide that one supplier is well above the others on an identical blank. Keep the weighted average for your books and reporting, but check per-supplier costs separately before you decide where to route the next batch of orders.