```html COGS Calculator - Calculate Your True Cost of Goods Sold
COGS Calculator • Inventory • Gross Profit • True Product Cost

COGS Calculator - Calculate Your True Cost of Goods Sold

Use this COGS Calculator to calculate your true cost of goods sold, gross profit, and gross margin using beginning inventory, purchases, freight-in, direct labor, materials, overhead, purchase adjustments, and ending inventory. This page is built for ecommerce sellers, Amazon sellers, Shopify stores, retailers, wholesalers, manufacturers, and product-based businesses that need clearer inventory and profit numbers.

Free COGS Calculator Calculate cost of goods sold, gross profit, and margin
COGS Calculate cost of goods sold from inventory, purchases, labor, materials, and ending inventory.
Gross Profit Find gross profit by subtracting COGS from net sales.
Margin Estimate gross margin percentage for pricing and profitability decisions.
Inventory Understand how beginning and ending inventory affect your true product cost.

COGS Calculator - Calculate Your True Cost of Goods Sold

This COGS Calculator helps you calculate the true cost of goods sold for a product-based business. Enter your beginning inventory, purchases, freight-in, direct labor, materials, other product costs, purchase adjustments, ending inventory, and net sales. The calculator will estimate your cost of goods sold, gross profit, gross margin, and cost of goods available for sale.

Enter Your COGS Numbers

Formula used: COGS = Beginning Inventory + Purchases + Freight-In + Direct Labor + Materials + Other Costs - Adjustments - Ending Inventory.

Your COGS Results

Estimated Cost of Goods Sold $102,000
Cost of Goods Available $132,000
Gross Profit $58,000
Gross Margin 36.25%
COGS Per Unit $25.50

This COGS Calculator is for planning and educational purposes. For tax filing, inventory valuation, or financial statements, review your numbers with a qualified bookkeeper, accountant, or CPA.

What Is COGS and Why Does It Matter?

COGS means cost of goods sold. It represents the direct cost connected to the products your business sold during a period. If you buy products for resale, COGS usually includes the cost of merchandise purchased for sale, inbound freight, and other direct inventory costs. If you manufacture products, COGS may include raw materials, direct labor, production supplies, and manufacturing overhead.

The reason a COGS Calculator is important is simple: revenue alone does not show profit. A store can generate strong sales and still have weak profit if product costs, shipping-in, returns, storage, labor, and inventory losses are too high. By calculating cost of goods sold correctly, you can understand gross profit, gross margin, pricing power, inventory performance, and the real profitability of your product line.

Many product-based businesses make the mistake of only looking at bank deposits or total sales. That creates an incomplete view of business performance. A business owner may think a product is profitable because it sells fast, but the true cost of goods sold may show that inbound shipping, packaging, labor, supplier price increases, or ending inventory adjustments are reducing margin.

This COGS Calculator is especially useful for ecommerce sellers, Amazon FBA sellers, Amazon FBM sellers, Shopify merchants, Etsy shops, wholesalers, retailers, food brands, clothing brands, supplement sellers, manufacturers, and any business that purchases or produces goods for sale.

COGS Formula - How to Calculate Cost of Goods Sold

The basic COGS formula is:

COGS = Beginning Inventory + Purchases + Direct Product Costs - Ending Inventory

In a more detailed version, you may also add freight-in, direct labor, materials, supplies, and manufacturing overhead, then subtract purchase returns, allowances, discounts, owner withdrawals, and ending inventory.

Detailed COGS Calculator Formula

A more complete formula used by this COGS Calculator is:

COGS = Beginning Inventory + Purchases + Freight-In + Direct Labor + Materials + Other Costs - Adjustments - Ending Inventory

This gives a more realistic cost of goods sold because it includes the direct costs required to acquire, prepare, or produce the inventory sold during the period.

Amounts Usually Added

  • Beginning inventory
  • Purchases for resale
  • Raw materials
  • Direct labor for production
  • Inbound freight or freight-in
  • Production supplies
  • Packaging that is part of the product
  • Manufacturing overhead
  • Other direct product costs

Amounts Usually Subtracted

  • Ending inventory
  • Purchase returns
  • Purchase allowances
  • Supplier discounts if treated as purchase reductions
  • Inventory withdrawn for personal use
  • Goods not sold during the period
  • Inventory that should remain on the balance sheet

COGS Calculator Example

Suppose your business starts the year with $25,000 of beginning inventory. During the period, you buy $80,000 of inventory, pay $4,500 in inbound freight, spend $12,000 on direct labor, use $7,000 in materials, and allocate $6,000 of other product costs. You also have $2,500 of purchase returns or discounts and $30,000 of ending inventory.

  • Beginning Inventory: $25,000
  • Purchases: $80,000
  • Freight-In: $4,500
  • Direct Labor: $12,000
  • Materials and Supplies: $7,000
  • Other Product Costs: $6,000
  • Less Adjustments: $2,500
  • Less Ending Inventory: $30,000
  • Estimated COGS: $102,000

If net sales are $160,000, gross profit would be $58,000 and gross margin would be 36.25%. This is why a COGS Calculator is useful: it connects inventory cost with sales performance.

What Should Be Included in COGS?

COGS should include costs directly connected to acquiring or producing the products you sell. The exact treatment can depend on your business type, accounting method, tax rules, and inventory workflow. However, the goal is to identify the product-related costs that belong to the goods sold during the period.

Product Purchase Cost

The invoice cost of products purchased for resale is usually the core part of COGS for retailers, wholesalers, and ecommerce sellers.

Raw Materials

For manufacturers, raw materials used to create finished goods are generally part of inventory cost and later become COGS when goods are sold.

Direct Labor

Direct labor may be included when workers are directly involved in producing or assembling the goods sold.

Freight-In

Freight-in means shipping or transportation paid to bring inventory into your warehouse, store, production facility, or fulfillment center.

Production Supplies

Materials and supplies used in producing goods may be part of COGS when they are directly tied to the manufacturing process.

Manufacturing Overhead

Certain factory overhead costs may be allocated to inventory and COGS when they are necessary for production.

What Should Not Be Included in COGS?

A common mistake is putting too many expenses into COGS. Not every business cost belongs in cost of goods sold. Many expenses are operating expenses, selling expenses, administrative expenses, or fulfillment expenses. These expenses can still matter, but they should not always be mixed with direct product cost.

Usually Not COGS

  • Advertising and marketing
  • Website hosting
  • Office rent
  • General admin payroll
  • Bookkeeping and legal fees
  • Customer service software
  • Shipping to customers in many reporting setups
  • Merchant processing fees
  • General business insurance

Why Separation Matters

  • COGS affects gross profit.
  • Operating expenses affect net profit.
  • Mixing categories can distort margins.
  • Bad categorization can create pricing mistakes.
  • Cleaner reports help your CPA and bookkeeper.
  • Better categories make monthly analysis easier.

The right treatment can vary based on your accounting method and business model. For example, freight-in to acquire inventory is usually different from shipping goods to customers. Inbound freight may belong to inventory cost, while outbound customer delivery may be reported as shipping, fulfillment, or selling expense depending on your accounting setup.

COGS Calculator for Ecommerce Sellers

Ecommerce businesses often need a COGS Calculator because product cost is spread across many systems: supplier invoices, freight bills, customs charges, Amazon reports, Shopify orders, warehouse systems, 3PL invoices, payment processor reports, and inventory software. If these numbers are not organized, gross profit can be misleading.

For ecommerce sellers, true COGS may include product purchase price, inbound freight, import duties, product prep, kitting costs, labeling, packaging that is part of the product, and other landed costs. The more accurate your landed cost, the more accurate your gross margin and product profitability reports.

Amazon Sellers

Amazon sellers need COGS to understand product profit after referral fees, FBA fees, storage costs, advertising, refunds, and inventory costs.

Shopify Stores

Shopify sellers need COGS to compare product margins, discounts, returns, shipping offers, and paid advertising performance.

Wholesale Sellers

Wholesalers need COGS to manage supplier pricing, bulk purchase discounts, freight-in, warehouse costs, and customer pricing.

If you sell on multiple channels, your accounting system should connect COGS with sales by channel. A product may look profitable on your own website but less profitable on marketplaces after referral fees, fulfillment costs, discounts, returns, and platform-specific expenses.

COGS Calculator for Amazon Sellers

Amazon sellers often confuse COGS with Amazon fees. COGS is usually the cost of the product and the direct costs needed to acquire or produce it. Amazon referral fees, FBA fulfillment fees, advertising, and storage fees are important, but they may be reported separately from COGS depending on your financial reporting setup.

The best Amazon seller reports separate product cost from Amazon fees. This makes it easier to see gross margin, contribution margin, and net profit. For example, a product may have a strong gross margin after COGS but weak contribution margin after Amazon ads and FBA fees. A basic COGS Calculator helps with the first layer of profitability, while full Amazon bookkeeping can show the complete picture.

COGS for Amazon Sellers May Include

  • Supplier product cost
  • Inbound freight
  • Import duties
  • Prep and inspection cost
  • Product packaging
  • Labeling and kitting cost
  • Materials used in production

Amazon Costs Often Tracked Separately

  • Referral fees
  • FBA fulfillment fees
  • Monthly storage fees
  • Advertising spend
  • Returns processing
  • Removal fees
  • Subscription fees

Internal resource: If you need deeper help with Amazon profitability, visit our Amazon Seller Accounting page for settlement reconciliation, SKU profitability, fee tracking, inventory accounting, and monthly reports.

COGS, Gross Profit, and Gross Margin Explained

COGS is only one part of profitability. After calculating cost of goods sold, you can calculate gross profit and gross margin. These metrics help you understand whether your product pricing is strong enough to cover operating expenses and still leave net profit.

COGS

Cost of goods sold is the cost connected to the products sold during the period.

Gross Profit

Gross Profit = Net Sales - COGS. It shows profit before operating expenses.

Gross Margin

Gross Margin = Gross Profit ÷ Net Sales × 100. It shows gross profit as a percentage of sales.

A higher gross margin usually means you have more room to cover operating expenses such as advertising, payroll, rent, software, professional services, insurance, shipping to customers, and owner profit. A lower gross margin may mean your supplier cost is too high, your pricing is too low, your inventory is inefficient, or your product mix needs review.

Beginning Inventory and Ending Inventory in the COGS Calculator

Beginning inventory is the value of inventory you had at the start of the period. Ending inventory is the value of inventory remaining at the end of the period. These two numbers are critical because COGS should reflect the cost of products sold, not simply the cost of products purchased.

If you buy inventory but do not sell it yet, that inventory usually remains on the balance sheet instead of becoming COGS immediately. When the inventory is sold, its cost moves into cost of goods sold. This is why ending inventory is subtracted in the COGS formula.

Beginning Inventory

Beginning inventory is usually the same as the previous period’s ending inventory. It represents goods available at the start of the period.

Ending Inventory

Ending inventory represents goods still on hand at the end of the period. These goods were not sold, so their cost should not be included in COGS for that period.

If your inventory count is wrong, your COGS will also be wrong. Overstated ending inventory can make COGS look too low and gross profit look too high. Understated ending inventory can make COGS look too high and gross profit look too low. This is why accurate inventory records are essential.

COGS Calculator for Pricing Decisions

A COGS Calculator is useful for pricing because it shows the minimum product cost that must be recovered through sales. If you do not know your true cost of goods sold, you may price products too low, discount too heavily, or run advertising campaigns that appear successful but actually reduce profit.

For example, if a product sells for $40 and the product cost appears to be $16, the seller may think the gross margin is strong. But if freight-in, packaging, duties, prep, damage, and inventory adjustments add another $5 per unit, the true COGS may be $21. That difference changes pricing decisions, advertising limits, wholesale pricing, and discount strategy.

Set Better Prices

Know the true product cost before setting retail, wholesale, subscription, or bundle pricing.

Control Discounts

Understand how much discount you can offer before the product margin becomes too weak.

Protect Profit

Use COGS to build pricing that covers product cost, operating expenses, taxes, and owner profit.

Common COGS Calculator Mistakes

Many businesses calculate COGS incorrectly because they do not have clean inventory records or they mix product costs with operating expenses. These mistakes can make financial reports unreliable and lead to poor pricing or inventory decisions.

Common Mistakes

  • Recording all inventory purchases as COGS immediately
  • Ignoring ending inventory
  • Forgetting freight-in and landed costs
  • Mixing advertising expenses into COGS
  • Not tracking purchase returns and allowances
  • Using outdated supplier cost data
  • Not counting damaged or obsolete inventory
  • Using sales reports without inventory reports

How to Improve Accuracy

  • Keep supplier invoices organized
  • Track inventory quantities and unit costs
  • Review freight-in and duties
  • Reconcile inventory regularly
  • Separate product cost from operating expenses
  • Review gross margin monthly
  • Use consistent inventory methods
  • Work with a bookkeeper or CPA when needed

COGS Calculator Table: What Goes Where?

Use this table to understand where common business costs may belong. Your final accounting treatment should be reviewed with a qualified professional, but this gives a useful starting point for organizing product costs.

Cost Type Usually COGS? Why It Matters
Product purchase cost Yes The cost of merchandise purchased for resale is usually a core COGS item.
Raw materials Yes Materials used to create finished goods are usually part of inventory cost.
Inbound freight Often yes Shipping paid to bring inventory to your business is commonly treated as part of product cost.
Direct production labor Often yes Labor directly involved in manufacturing or assembling goods may be included in COGS.
Advertising Usually no Advertising is usually a selling expense, not a direct product cost.
Customer shipping Depends Outbound shipping is often tracked as fulfillment or selling expense, not product COGS.
Office software Usually no General software is normally an operating expense unless directly tied to production allocation.
Ending inventory Subtracted Unsold inventory remains on hand and is subtracted from goods available for sale.
Product Purchase Cost

Usually COGS. The cost of merchandise purchased for resale is a core COGS item.

Raw Materials

Usually COGS. Materials used to create finished goods are usually inventory cost.

Inbound Freight

Often COGS. Shipping paid to bring inventory to your business can be part of product cost.

Advertising

Usually not COGS. Advertising is normally a selling expense.

Ending Inventory

Subtracted. Unsold inventory is removed from goods available for sale when calculating COGS.

COGS Calculator and Bookkeeping Services

A calculator can estimate cost of goods sold, but accurate financial reporting depends on clean records. If your inventory, purchases, sales channels, supplier invoices, freight costs, and accounting software are not organized, the calculator result may not match your real books.

Seller Bookkeeping can help product-based businesses clean up COGS, inventory, gross profit, and monthly reports. If you sell on Amazon, Shopify, Walmart, eBay, Etsy, or multiple ecommerce channels, clean COGS tracking can help you understand product profitability and prepare tax-ready reports.

Why Your True COGS May Be Higher Than You Think

Many businesses underestimate cost of goods sold because they only use supplier product cost. True COGS may be higher once freight-in, duties, prep, packaging, shrinkage, damaged inventory, production labor, and inventory adjustments are included. This is especially common in ecommerce businesses where product costs are spread across many systems.

  • ✓ Supplier cost may not include freight-in or import duties.
  • ✓ Product prep, labels, and packaging can reduce margin.
  • ✓ Inventory shrinkage and damage can increase true cost.
  • ✓ Returns can create inventory adjustments and resale issues.
  • ✓ Ending inventory must be accurate for COGS to be accurate.
  • ✓ Gross margin should be reviewed monthly, not only at tax time.

How to Use the COGS Calculator Correctly

To use this COGS Calculator correctly, gather your accounting records before entering numbers. You may need inventory reports, supplier invoices, purchase records, freight bills, payroll details, production cost reports, and sales reports. The better your inputs, the more useful your COGS result will be.

Step 1

Enter beginning inventory from the start of the period.

Step 2

Enter purchases made during the period for resale or production.

Step 3

Add freight-in, labor, materials, and other direct product costs.

Step 4

Subtract purchase returns, discounts, withdrawals, and ending inventory.

Step 5

Enter net sales to calculate gross profit and gross margin.

Step 6

Enter units sold to estimate COGS per unit.

Step 7

Review whether the margin supports your pricing strategy.

Step 8

Use bookkeeping records to confirm final tax-ready numbers.

Need Help Cleaning Up COGS and Inventory?

Use the COGS Calculator to estimate your true cost of goods sold, then get professional help if your inventory, Amazon reports, Shopify sales, supplier invoices, or bookkeeping records are messy. Seller Bookkeeping helps ecommerce businesses organize COGS, inventory, gross profit, and monthly financial reports.

Schedule Your Free Consultation →

COGS Calculator FAQs

What is a COGS Calculator?

A COGS Calculator is a tool that helps calculate cost of goods sold using beginning inventory, purchases, freight-in, direct labor, materials, other product costs, purchase adjustments, and ending inventory. It can also estimate gross profit, gross margin, and COGS per unit.

What is the formula for COGS?

The common COGS formula is beginning inventory plus purchases and direct product costs minus ending inventory. A detailed formula may include freight-in, direct labor, materials, overhead, purchase returns, discounts, and inventory withdrawals.

Why is COGS important?

COGS is important because it helps calculate gross profit and gross margin. Without accurate COGS, a business may not know whether its products are truly profitable after inventory costs.

Does COGS include shipping?

Freight-in or inbound shipping paid to bring inventory to your business is often included in inventory cost or COGS. Shipping products to customers is usually tracked separately as a selling or fulfillment expense, depending on your accounting setup.

Does COGS include labor?

Direct labor can be part of COGS for manufacturers or producers when workers are directly involved in making or assembling products. General administrative labor is usually not COGS.

Does COGS include advertising?

Advertising is usually not included in COGS. It is normally treated as a selling or marketing expense. However, advertising still affects net profit and should be reviewed alongside gross margin.

How do I calculate gross profit from COGS?

Gross profit equals net sales minus COGS. For example, if net sales are $160,000 and COGS is $102,000, gross profit is $58,000.

How do I calculate gross margin?

Gross margin equals gross profit divided by net sales, multiplied by 100. For example, if gross profit is $58,000 and net sales are $160,000, gross margin is 36.25%.

Is ending inventory included in COGS?

Ending inventory is subtracted when calculating COGS because it represents goods that were not sold during the period. Unsold inventory usually remains on the balance sheet until it is sold.

Can ecommerce sellers use this COGS Calculator?

Yes. Ecommerce sellers can use this COGS Calculator to estimate product cost, gross profit, and gross margin. It is useful for Amazon, Shopify, Walmart, Etsy, eBay, WooCommerce, wholesale, and retail sellers.

Can Amazon sellers use this COGS Calculator?

Yes. Amazon sellers can use the COGS Calculator to estimate product cost before analyzing Amazon fees, FBA fees, storage charges, advertising, refunds, and marketplace expenses.

Is this COGS Calculator enough for tax filing?

This calculator is helpful for planning and education, but tax filing should be based on complete bookkeeping records, inventory reports, and professional review from a qualified bookkeeper, accountant, or CPA.

```