Cost of goods sold (COGS) is what you paid to make the products you actually sold in a period, and the formula is Beginning inventory + Purchases − Ending inventory = COGS. For a print-on-demand store with no stock on hand, COGS is simply what your supplier charged to print and ship the orders you sold: the blank, the print, and the supplier's shipping, plus payment fees if you choose to count them there.

What is cost of goods sold?

Cost of goods sold is the direct cost of the products you sold. "Direct" means the cost only happens because you made a sale.

If you sell a T-shirt, the blank shirt and the ink are direct costs. Your Shopify plan is not. Sales minus COGS is your gross profit, the money left to pay for ads, apps and you.

COGS sits near the top of your profit and loss statement, so if it is wrong, every number below it is wrong too. It is the first number to get right in our guide to true profit and the P&L.

What is the COGS formula?

The standard COGS formula is:

Beginning inventory + Purchases − Ending inventory = COGS

Each part means something simple:

  • Beginning inventory is the value of the stock you had at the start of the period.
  • Purchases are the stock you bought or made during the period.
  • Ending inventory is the value of the stock still unsold at the end.

Shopify's COGS guide uses this same formula. Its example uses $20,000 of starting stock, $8,000 of purchases and $6,000 of ending stock, for $22,000 of COGS.

Say you keep pre-printed hoodies for a local market. You start the month with $1,200 of stock, buy $3,500 more, and have $900 left at month end. Your cogs calculation is $1,200 + $3,500 − $900 = $3,800.

How do you calculate COGS if you never hold inventory?

If you sell print-on-demand, your beginning and ending inventory are both zero. The supplier is the company that prints and ships each order for you, like Printify, Printful or Gelato. Nothing sits on a shelf, so the formula shrinks to: COGS = what the supplier charged for the orders you sold this period.

That supplier charge usually has three parts:

  • The blank product (the plain shirt, mug or poster).
  • The print or fulfillment fee.
  • The supplier's shipping to your customer.

Many sellers also add the payment fee, which is what the card company keeps from each sale. Put it in the same place every month.

One catch: match costs to the month of the sale. If a customer pays March 31 and the supplier bills you April 1, that cost still belongs to March.

How to calculate cost of goods sold per order: a POD worked example

Here is how to calculate COGS for a real-looking store. Say you sell a $31 T-shirt and do 340 orders a month. These are example numbers, not market prices.

Cost per order Amount
Blank shirt + print (supplier) $11.90
Supplier shipping to customer $4.50
Payment fee $1.20
COGS per order $17.60

The table above is a worked example; the numbers are made up to show the math.

Now find your gross profit per order: $31.00 − $17.60 = $13.40. Your gross margin is $13.40 ÷ $31.00 = 43.2%. Gross margin is the share of each sale you keep after paying for the product.

Now do the month:

  • Sales: 340 × $31 = $10,540
  • COGS: 340 × $17.60 = $5,984
  • Gross profit: $10,540 − $5,984 = $4,556

Say you spend $2,800 a month on Meta ads. That leaves $4,556 − $2,800 = $1,756 before apps, tools and your own pay. If that number feels thin, our guide on why your gross profit is low walks through the usual leaks.

What costs go in COGS, and what goes in operating expenses?

COGS holds costs tied to each unit sold. Operating expenses (OpEx) are the costs to run the business no matter how much you sell. Our full guide to operating expenses covers the second group.

For a print-on-demand store, a clean split looks like this:

In COGS In operating expenses
Blank product and printing Ad spend (Meta, Google, TikTok)
Supplier shipping to the customer Shopify plan and apps
Packaging or inserts Design and email tools
Payment fees (if you choose) Contractors and your own pay

Keep ad spend out of COGS. It makes your products look worse than they are and hides your real risk: the cost to win each customer.

Shipping you charge customers is income, not a cost cut. Show it as its own sales line. Our guide to shipping revenue in sales reports shows how to keep it from muddying your COGS.

How is COGS different from cost of revenue?

Cost of revenue is a wider bucket. Shopify's guide says it adds order fulfillment, payment fees, customer service and platform fees on top of COGS. For POD the line is blurry, so pick one set of rules and stick to it.

Which inventory method should you use: FIFO, LIFO or weighted average?

This only matters if you hold stock and prices change between batches. Say you buy 100 mugs at $5 each, then 100 more at $6 each. You sell 120.

  • FIFO (first in, first out): you use the oldest cost first. 100 × $5 + 20 × $6 = $620.
  • LIFO (last in, first out): you use the newest cost first. 100 × $6 + 20 × $5 = $700.
  • Weighted average: you use the average cost of $5.50. 120 × $5.50 = $660.

The international rule for inventory, IAS 2, lists FIFO, weighted average and specific identification as cost methods. LIFO is not on that list. Ask your tax pro which method fits you before you pick, since changing later can be hard.

Do you need accrual accounting if you sell products?

Maybe. Accrual accounting records a sale when it happens; cash accounting records money only when it moves.

IRS Publication 334 says that if you need inventory to figure your income, you generally must use an accrual method for sales and purchases. There is an exception for small business taxpayers, which the same publication defines. Most POD sellers hold no stock, but ask your tax pro which rule fits you.

What is the schedule of cost of goods sold on Schedule C?

A schedule of cost of goods sold is a short table that walks from starting stock to COGS. For US sole owners, it lives in Part III of Schedule C. The IRS Schedule C instructions explain each line: starting inventory, purchases, labor, materials and supplies, other costs, and ending inventory.

The total from Part III flows into your gross profit on the same form. A POD seller usually fills in purchases (supplier charges) and leaves inventory at zero.

This is general information, not tax advice. Rules change and vary by situation — consult a licensed CPA or tax professional before acting.

How do you record COGS in your books?

You record COGS with a simple pair of entries. If you hold stock, you debit (add to) COGS and credit (take from) inventory when the item sells.

For POD, when the supplier bills you, you debit COGS and credit cash or your card. Tools like QuickBooks or Xero do this once each supplier bill has a category.

How do you find cost of goods sold in Shopify?

Each Shopify product has a "cost per item" field. Fill it in with your supplier cost, and Shopify can show cost and profit in its reports.

Shopify's guide points to the Finance summary report under Analytics > Reports for a COGS figure. The catch is that the field is a fixed number you type in. When your supplier raises a price or changes shipping, your report is wrong until you update it.

How do you turn COGS into a price?

Start from the gross margin you want, then work back to the price. The formula is Price = COGS ÷ (1 − target margin).

Using the shirt above with a 45% target: $17.60 ÷ (1 − 0.45) = $17.60 ÷ 0.55 = $32.00. At $32, you keep $14.40 per order before ads.

Do not mix up markup and margin. Markup compares profit to cost; margin compares profit to price. At $31, your markup is $13.40 ÷ $17.60 = 76%, but your margin is only 43.2%. To see what is left after ads and other per-order costs, learn how to get contribution margin.

How can you lower your COGS?

You lower COGS by paying less for each unit you sell. For a POD store, the main levers are:

  • Compare suppliers. The same blank can cost different amounts at Printify, Printful and Gelato.
  • Switch the blank. A lighter shirt or a different brand can cut the base cost.
  • Get a resale certificate. Printful's help center explains how a valid certificate stops you paying sales tax on supplier orders. Set it up before your first order.
  • Bundle items. Two items in one package can share one shipping charge.

A simple COGS tracker you can run each month

A spreadsheet with one row per order works:

  • Order number and date
  • Sale price and shipping charged
  • Supplier cost (blank + print)
  • Supplier shipping
  • Payment fee
  • COGS (the sum of the three cost columns)
  • Gross profit (sale price minus COGS)

At month end, check the COGS total against your supplier bills. A gap means a refund, reprint or price change slipped through.

How Victor keeps COGS right for you

Victor is the AI employee at PodVector AI who runs the work of a print-on-demand business, and the numbers are one of his jobs.

Victor knows the real cost of every order: sales minus supplier cost, fees, shipping, refunds and ad spend. He reads product costs from Printify, Printful and Gelato before your first sale, so your COGS is right from day one. He runs a monthly supplier cost review on his own, flags SKUs whose margin got thin, reprices them in Shopify, and moves a product to a cheaper printer or blank when that makes sense. You can try Victor free.

FAQs

What is the cost of goods sold in simple words?

It is what you paid to make the items you sold. For a POD store, it is the supplier's charge for printing and shipping each order. You subtract it from sales to get gross profit.

How do you calculate COGS for print-on-demand?

Add up what your supplier charged for every order you sold in the month. Include the blank, the print and the supplier's shipping, and add payment fees if you count them there. Your inventory is zero, so there is nothing to add or subtract.

Is shipping part of cost of goods sold?

The shipping your supplier charges to send an order is usually part of COGS. Shipping your customer pays you is income, so show it on its own sales line. Keep both the same way every month.

Is ad spend part of COGS?

No. Ad spend is an operating expense. Putting it in COGS makes your products look less profitable than they are and hides how much each customer costs to win.