Free • No login required

COGS Calculator

Calculate your Cost of Goods Sold (COGS) to understand your direct business costs.

$
$
$

Fill in the fields above and click Calculate to see your results.

How to use

Enter your beginning inventory (the value of stock on hand at the start of the period), everything you purchased during the period, and your ending inventory from the closing stock count. The calculator applies the standard COGS formula: beginning inventory + purchases − ending inventory.

Run this monthly, right after your stock count. COGS is the foundation for gross margin, food cost, and pricing decisions — if it is wrong, every downstream number is wrong. A sudden jump in COGS without a matching jump in sales usually points to shrinkage, waste, unrecorded stock, or a supplier price increase worth investigating.

How it's calculated

Cost of Goods Sold (COGS)

beginning_inventory + purchases - ending_inventory

Examples

Clothing store, one month

  • Purchases During Period:100,000,000
  • Ending Inventory:60,000,000
  • Beginning Inventory:50,000,000

Result

  • Cost of Goods Sold (COGS):90,000,000

The store started with 50M₫ of stock, bought 100M₫ more, and ended with 60M₫ — so 90M₫ of goods were sold (or lost). If recorded sales were 180M₫, that implies a healthy 50% gross margin for apparel.

Mini-mart, one quarter

  • Purchases During Period:150,000,000
  • Ending Inventory:70,000,000
  • Beginning Inventory:80,000,000

Result

  • Cost of Goods Sold (COGS):160,000,000

Over the quarter this mini-mart consumed 160M₫ of goods. Grocery margins are thin (20–25%), so revenue should be at least 200M₫ for this COGS level — if it is lower, check pricing or shrinkage.

Industry Benchmarks

Metric Typical Range
COGS as a share of revenue by retail segment: grocery 75–80%, apparel 45–55%, electronics 85–90%, cosmetics 35–45%. Lower is better, but must match your category. —

Data source: NYU Stern Margin by Sector (2025); VN retail industry reports

Frequently Asked Questions

What is COGS?

Cost of Goods Sold (COGS) is the direct cost of the products your business sold during a period — the goods themselves plus costs to get them ready to sell, such as inbound freight and import duties. It excludes indirect costs like rent, marketing, and administrative salaries.

Why does the formula use inventory counts instead of just purchases?

Purchases alone tell you what you bought, not what you actually sold. By adding beginning inventory and subtracting what is left at the end, the formula isolates the cost of goods that truly left your shelves — including anything lost to damage or theft, which is why accurate stock counts matter.

How often should I calculate COGS?

Monthly is the standard for small retailers, aligned with your stock count. High-volume stores or businesses with perishable goods often calculate weekly. The shorter the period, the faster you catch problems like shrinkage or supplier price creep before they erode a full quarter's profit.

Does COGS include staff wages or rent?

No. COGS covers only direct product costs: purchase price, inbound shipping, customs duties, and packaging that is part of the product. Wages, rent, utilities, and marketing are operating expenses — they come out of gross profit, not COGS. Mixing them in makes margin comparisons with industry benchmarks meaningless.
CalcVault Editorial Team

CalcVault Editorial Team

Verified Content Team

The CalcVault Editorial Team is a group of finance, health, and mathematics specialists dedicated to producing accurate, bilingual calculator content for Vietnamese and global small business owners. Every formula on CalcVault undergoes rigorous source verification against authoritative bodies including the IRS, CFPB, CDC, WHO, and NIST before publication. Our process includes independent peer review, structured fact-checking, and scheduled content audits to ensure every calculator remains up-to-date with the latest regulatory and scientific standards. We are committed to editorial independence from our advertising partners.

Areas of Expertise

Personal FinanceVietnam Tax & PayrollHealth Metrics & BMIApplied MathematicsBusiness LendingSMB Financial Planning

Related Calculators

Related Calculators