What Cost of Sales Means and Why You Need It
Cost of sales is the total amount you spend to produce the goods or services you actually sold during a specific period. It includes the raw materials, labor, and direct overhead that went into making those items—but not rent on your office, marketing, or administrative salaries. The number matters because it shows you how much of each sales dollar goes straight to production, and what's left over as profit.
If you sell products, cost of sales is straightforward: add up what you paid for inventory, labor to make it, and materials. If you provide services, it's the wages and materials you spent on jobs you completed and billed for. Either way, the formula is the same, and you'll need this figure for tax returns, loan applications, and to understand whether your business is actually profitable.
Key Takeaways
- Cost of sales includes only the direct costs of producing what you sold: materials, labor, and manufacturing overhead—not office rent or administrative staff.
- The basic formula is: Beginning Inventory + Purchases − Ending Inventory + Direct Labor + Manufacturing Overhead = Cost of Sales.
- You must track what inventory you had at the start of the period, what you bought, and what you had left at the end to calculate the cost of goods sold.
- Service businesses use the same concept but focus on labor and materials directly tied to completed jobs, not inventory.
- Your accountant or bookkeeping software can help you organize these numbers, but understanding the calculation yourself prevents errors.
The Formula: Beginning Inventory, Purchases, and Ending Inventory
The standard formula for cost of sales in a product business is:
Beginning Inventory + Purchases − Ending Inventory + Direct Labor + Manufacturing Overhead = Cost of Sales
Start with the inventory you had on hand at the beginning of the accounting period—the dollar value of all unsold goods. Add everything you purchased during that period: raw materials, finished goods from suppliers, or components you assembled. Then subtract the inventory you have left at the end of the period. This tells you what you actually used or sold.
Next, add the wages you paid workers who directly made the product—not supervisors or office staff, just the people whose hands touched the goods. Then add manufacturing overhead: utilities for the factory, equipment depreciation, factory rent, and supplies used in production. Do not include office utilities, sales commissions, or delivery costs. The result is your cost of sales for that period.
Counting and Valuing Your Inventory
You cannot calculate cost of sales without knowing what inventory you had at the start and end of your accounting period. Most businesses do a physical count at least once a year, usually at the end of the year for tax purposes. You walk through the warehouse or storage area, count every item, and record the quantities.
Once you have the count, you need to assign a dollar value to it. The most common methods are FIFO (first in, first out—you assume the oldest items sold first), LIFO (last in, first out—you assume the newest items sold first), and weighted average cost (you average the cost of all units available). FIFO usually gives the lowest cost of sales in an inflationary environment; LIFO gives the highest. The method you choose affects your profit and your taxes, so pick one and stick with it unless you have a good reason to change. Your accountant can advise which makes sense for your business.
If you use accounting software like QuickBooks, Xero, or Wave, you can track inventory in real time as you buy and sell. The software calculates ending inventory automatically, which saves you from manual counting errors. However, you should still do a physical count at least once a year to catch theft, damage, or data entry mistakes.
Direct Labor: Wages That Count Toward Cost of Sales
Include only wages for workers whose labor directly produces the goods you sold. If you run a bakery, the baker's wages count. The delivery driver's wages do not. If you manufacture furniture, the carpenter and upholsterer count; the receptionist does not.
Include payroll taxes, benefits, and bonuses tied to production output for these workers. If a baker gets a $500 bonus for hitting a production target, that bonus is part of cost of sales. If a manager gets a $1,000 annual bonus regardless of output, it is not.
Wages for quality control inspectors, equipment maintenance workers, and factory supervisors who oversee production are usually included as manufacturing overhead rather than direct labor. The line can be fuzzy, so document your decision and explore it consistently year to year. If you are unsure, ask your accountant whether a particular wage belongs in cost of sales or in operating expenses.
Manufacturing Overhead: What to Include and What to Leave Out
Manufacturing overhead is the cost of running the production facility itself, separate from the cost of materials and direct labor. It includes factory rent or the depreciation on a building you own, utilities for the production area, equipment depreciation, maintenance and repairs to machinery, factory supplies (oil, cleaning materials, safety equipment), and the wages of supervisors and quality inspectors who oversee production.
Do not include office rent, office utilities, administrative salaries, sales commissions, marketing, delivery, or customer service. These are operating expenses, not manufacturing overhead. The distinction matters because operating expenses reduce profit but do not affect cost of sales.
If you share a building—say, a warehouse with office space—split the rent and utilities between manufacturing overhead and operating expenses based on the square footage each uses. If the warehouse is 80% production and 20% office, allocate 80% of rent and utilities to manufacturing overhead.
How Service Businesses Calculate Cost of Sales
If you provide a service rather than sell a product, you do not have inventory, but you still have a cost of sales. It includes the wages of people who deliver the service and the materials they use on the job.
For example, a plumbing company's cost of sales includes the plumber's wages, the cost of pipes and fittings installed, and the truck fuel for that job. It does not include the office manager's salary, the cost of the office, or advertising. A consulting firm's cost of sales includes the consultant's billable hours and any software or research materials purchased for the client's project.
Track the time and materials for each job. Your invoicing software or time-tracking tool should record which hours and materials belong to which client. At the end of the period, add up all the labor and materials for jobs you completed and billed for. That total is your cost of sales.
Organizing Your Numbers: What Documents You Need
To calculate cost of sales accurately, gather these documents before you start:
- Inventory count sheets or reports from the beginning and end of the period, with dollar values assigned.
- Invoices from suppliers showing what you purchased and when.
- Payroll records showing wages for direct labor and manufacturing overhead staff.
- Utility bills, rent agreements, and maintenance invoices for the production facility.
- Equipment purchase records and depreciation schedules.
- Time sheets or job reports showing labor and materials for service work.
If you use accounting software, many of these are already organized in the system. Export a profit and loss statement or cost of goods sold report from your software; it will show the calculation broken down. If you do the calculation by hand or in a spreadsheet, create a straightforward table with each component listed, the dollar amount, and a note about where the figure came from. This makes it straightforward to spot errors and to explain the number to your accountant or a lender.
Common Mistakes to Avoid
The most common error is including operating expenses in cost of sales. Rent on your office, your own salary, insurance, and marketing all reduce profit, but they are not part of cost of sales. Keep them separate so you can see how much of your sales revenue actually goes to production.
Another mistake is forgetting to account for ending inventory. If you bought $10,000 in materials but only used $7,000 of it, your cost of sales should reflect the $7,000 you used, not the $10,000 you spent. The unused $3,000 stays on the balance sheet as inventory until you use or sell it.
A third error is inconsistency in inventory valuation. If you use FIFO one year and LIFO the next, your cost of sales numbers will not be comparable, and you may confuse yourself or your accountant. Choose a method and document it in your accounting policies.
Finally, do not guess at inventory counts or overhead allocations. Physical counts and documented records protect you in an audit and give you accurate numbers to make business decisions. If you are unsure how to allocate a cost, ask your accountant rather than making an assumption.
Frequently Asked Questions
Do I include shipping costs I pay to suppliers in cost of sales?
Yes, if you pay for shipping to bring materials or finished goods into your inventory, add that cost to the purchase price. It is part of what you paid for the goods. However, shipping you charge customers or pay to deliver finished goods to them is a separate operating expense, not cost of sales.
What if I manufacture some goods and buy others to resell?
Use the same formula for both. For goods you manufacture, include materials, direct labor, and overhead. For goods you buy finished, the purchase price is your cost. Track them separately if you want to see the breakdown, but add them together for total cost of sales.
How often do I need to calculate cost of sales?
Most businesses calculate it monthly or quarterly for internal management and annually for tax returns. Monthly or quarterly calculations help you spot trends and adjust pricing or production. Your accountant will need an annual figure for your tax return and financial statements.
Can I use an estimate for ending inventory if I have not counted yet?
For internal reports, yes—an estimate is better than nothing. For tax returns and financial statements you share with lenders or investors, no. You need a physical count or a documented estimation method approved by your accountant. Auditors will ask to see the count sheets.
What if my cost of sales is higher than my sales revenue?
That means you are losing money on production—your materials and labor cost more than you are charging customers. This can happen temporarily during startup or if you cut prices to gain market share, but it is not sustainable. Review your pricing, your production efficiency, and your material costs. Your accountant can help you analyze where the problem is.