Guide

Cost of sales meaning: definition, formula and examples

Learn the cost of sales meaning, why it matters, and how to calculate it to protect your margin.

Image shows cost of sales highlighted on an income statement.

Written by Lena Hanna—Trusted CPA Guidance on Accounting and Tax. Read Lena's full bio

Published Saturday 21 February 2026

Table of contents

Key takeaways

  • Calculate your cost of sales by including only direct costs tied to creating and delivering your products or services, such as materials, production labour, shipping, and packaging, while excluding indirect expenses like rent, marketing, and administrative salaries.
  • Track both fixed costs that stay consistent regardless of sales volume and variable costs that change with production to get an accurate profit baseline and set prices that generate healthy margins.
  • Monitor your cost of sales monthly to catch rising expenses early and adjust your pricing before they impact profit margins, ensuring you maintain profitability as business conditions change.
  • Reduce your cost of sales by negotiating better supplier terms, sourcing alternative materials at lower costs, improving production efficiency, and optimising inventory management to boost your bottom line.

What is cost of sales?

Cost of sales is the total expense of producing and delivering your products or services to customers. According to International Financial Reporting Standards (IFRS), when products are sold, their cost is recognised as an expense in the same period the revenue is recognised, which includes direct costs like materials, labour, and shipping.

You might also see it referred to as cost of goods sold (COGS). Understanding your cost of sales helps you set profitable prices and make smart sourcing decisions.

Direct costs make up your cost of sales. These are expenses tied specifically to creating and delivering your products or services.

Indirect costs like rent or marketing support your business but don't directly create products. Only direct costs belong in your cost of sales calculation.

Cost of sales varies by business type:

  • For retailers: inventory, packaging, shipping costs
  • For service providers: software subscriptions, contractor fees
  • For manufacturers: raw materials, production labour, equipment use

Why is cost of sales important?

Cost of sales establishes your profit baseline, or the minimum you must charge to avoid losing money on each sale.

Understanding these costs helps you set prices that generate profit. It also helps you identify which products or services deliver the best returns.

Fixed costs and variable costs both impact your cost of sales calculation. Understanding the difference helps you predict how costs change as your business grows.

Fixed costs stay consistent regardless of sales volume:

  • Employee salaries
  • Equipment leases
  • Software subscriptions

Variable costs change based on production or sales:

  • Raw materials
  • Shipping fees
  • Transaction processing

Include both types when calculating your total cost of sales to get an accurate profit baseline.

Regular cost tracking helps you maintain profitable pricing as expenses change. Monitor your cost of sales monthly to catch rising costs early and adjust prices before they impact your profit margins.

Cost of sales vs. expenses

Cost of sales is not the same as general business expenses. Cost of sales includes only expenses directly tied to creating and delivering your products or services. Business expenses cover all other costs needed to run your company.

Here's how to categorise common costs:

Business expenses (not cost of sales):

  • Public relations and marketing agencies
  • Office rent and utilities
  • Administrative staff salaries

Cost of sales (directly tied to each sale):

  • Product delivery and shipping
  • Payment processing fees
  • Materials and packaging

Track both metrics to make informed financial decisions:

  • When sales volume drops: focus on reducing business expenses
  • When profit margins shrink: lower your cost of sales through better supplier deals or process improvements

What to include in cost of sales

To calculate your cost of sales accurately, separate the direct costs of producing and selling your goods or services from your general business expenses.

For example, United States Generally Accepted Accounting Principles (US GAAP) provides specific guidance on accounting for production costs, advising that direct materials, labour, and overhead should be assigned to specific units, so you only include costs directly tied to what you sell.

As another example, one major retailer's definition of cost of goods sold (COGS) includes not just inventory, but also warehousing costs, distribution payroll, and inventory shrink costs.

Costs typically included in your cost of sales calculation:

  • Direct materials: raw materials used to create your product
  • Direct labour: wages for staff who directly produce your goods or deliver your services
  • Production supplies: items consumed during production that aren't part of the final product
  • Shipping and freight: costs to get raw materials to you or finished products to customers. Under both IFRS and US GAAP, businesses typically consider freight costs part of the cost of sales when they ship goods to a customer, as these costs are directly associated with the sale.
  • Packaging: boxes, labels, and other materials for packaging your product

Exclude indirect costs, which are general operating expenses:

  • Marketing and advertising costs
  • Administrative salaries (like HR or accounting staff)
  • Rent and utilities for your main office
  • General office supplies

Consistency matters most. Apply the same categorisation rules every time to keep your calculations reliable.

How to calculate cost of sales in different industries

Different business types require different cost of sales formulas. Use the equation that matches your business model for the most accurate result.

Cost of sales example formula for service businesses

Service businesses include these direct costs in their cost of sales calculation:

Include:

  • Service delivery staff wages
  • Client-facing workspace costs
  • Travel expenses for client work
  • Equipment used for service delivery

Exclude:

  • Administrative staff salaries
  • General office expenses
  • Marketing costs

Cost of sales example formula for retailers

Retailers calculate cost of sales using inventory values plus direct selling costs.

Core formula: Beginning inventory + purchases − ending inventory = cost of sales

Additional costs to include:

  • Shipping and delivery fees
  • Payment processing charges
  • Packaging materials

Cost of sales example formula for manufacturing

Manufacturers include production-related costs in their cost of sales:

Always include:

  • Raw materials and components
  • Production labour costs
  • Manufacturing equipment use

May vary by business:

  • Warehousing costs
  • Freight and logistics

Choose consistent categorisation and apply it across all calculations.

Cost of sales examples

Consistency matters more than perfect categorisation. Even large companies adjust their definitions. One firm cut its reported cost of goods sold from $12.6 billion to $12.2 billion for the fiscal year by reclassifying certain expenses.

Choose clear rules for borderline costs and apply them every time.

Common borderline costs:

  • Sales commissions: Include if tied to specific sales
  • Equipment maintenance: Include if used directly for production
  • Quality control: Include if part of delivery process

Retail business example

Here's how a homeware store calculates cost of sales for handmade pottery cups:

  • Product cost: $5.00 (supplier price)
  • Shipping: $2.00 (delivery to store)
  • Labour: $3.00 (stocking and sales support)
  • Total cost of sales: $10.00

Pricing decision: To achieve a 50% profit margin, the store sets the retail price at $15.00 per cup.

Simplify your cost tracking with Xero

Business costs change all the time. A simple way to monitor and manage your costs keeps you in control of your spending and protects your profit margins.

With Xero job costing software, you get a live view of your income and outgoings. You always know the state of your finances.

Run deeper financial analysis with Xero analytics and reporting features. View cash flow projections, income and expenditure reports, and financial statements to stay in control of your numbers. Get one month of Xero free and try it out.

FAQs on cost of sales

Here are answers to common questions about cost of sales.

How can I reduce my cost of sales?

There are several practical ways to reduce your cost of sales:

  • Negotiate with suppliers for better pricing or payment terms
  • Source alternative materials or inventory at lower costs
  • Improve production efficiency with better technology or training
  • Optimise inventory management to reduce carrying costs
  • Outsource specific functions instead of hiring full-time staff

How does the cost of sales affect profitability?

Cost of sales directly determines your profit margins. The gap between your selling price and cost of sales becomes your gross profit.

Example: $100,000 in sales revenue minus $90,000 cost of sales leaves only $10,000 gross profit, just a 10% margin.

Aim for a cost of sales that allows healthy profits while keeping prices competitive. As a general guide, a good gross profit margin can range from 20–40% for product businesses and 50–70% for service-based businesses.

What's the difference between cost of sales and cost of goods sold?

Cost of sales and cost of goods sold (COGS) measure the same thing – direct costs – but suit different business types.

Cost of sales works well for:

  • Service businesses (including delivery, commission, and transport)
  • Companies with different types of revenue
  • Businesses selling both products and services

COGS works better for:

  • Product manufacturers (focused on production costs)
  • Retailers selling physical goods
  • Businesses with primarily inventory-based sales

Cost of sales covers a broader range of selling expenses beyond just inventory.

Disclaimer

Xero does not provide accounting, tax, business or legal advice. This guide has been provided for information purposes only. You should consult your own professional advisors for advice directly relating to your business or before taking action in relation to any of the content provided.

Start using Xero for free

Access Xero features for 30 days, then decide which plan best suits your business.