Cost of goods sold: How to calculate and record COGS


Written by:


Running a business requires a lot of math. But to calculate your profits and expenses properly, you need to understand how money flows through your business. If your business has inventory, it’s integral to understand the cost of goods sold.

What is the cost of goods sold?

The cost of goods sold (COGS) refers to the cost of producing an item or service sold by a company.



SPONSORED: Find a Qualified Financial Advisor

1. Finding a qualified financial advisor doesn't have to be hard. SmartAsset's free tool matches you with up to 3 fiduciary financial advisors in your area in 5 minutes.

2. Each advisor has been vetted by SmartAsset and is held to a fiduciary standard to act in your best interests. If you're ready to be matched with local advisors that can help you achieve your financial goals get started now.





Knowing the cost of goods sold can help you calculate your business’s profits. COGS can also inform a proper price point for an item or service. Understanding this term can help you better manage your inventory, taxes, and business.

Is the cost of goods sold the same as the cost of sales?

Yes, the cost of goods sold and cost of sales refer to the same calculation. Both determine how much a company spent to produce their sold goods or services.

What is included in the cost of goods sold?

The cost of goods sold may include

  • Materials used to create a product or perform a service.
  • Labor needed to make a product or perform a service.
  • Overhead costs directly related to production (for example, the cost of electricity to run an assembly line).

The cost of goods sold excludes

  • Indirect expenses (for example, distribution or marketing).
  • Overhead costs associated with general business operations.
  • The cost of creating unsold inventory or services.


The cost of goods sold formula

Considering what’s included and what’s excluded, you can determine COGS with the following equation:


The cost of goods sold formula

How to calculate the cost of goods sold

Calculate COGS by adding the cost of inventory at the beginning of the year to purchases made throughout the year. Then, subtract the cost of inventory remaining at the end of the year. The final number will be the yearly cost of goods sold for your business.


Typically, calculating COGS helps you determine how much you owe in taxes at the end of the reporting period—usually 12 months. By subtracting the annual cost of goods sold from your annual revenue, you can determine your annual profits. COGS can also help you determine the value of your inventory for calculating business assets.


There are other inventory costing factors that may influence your overall COGS. The IRS refers to these methods as “first in, first out” (FIFO), “last in, first out” (LIFO), and average cost.

Why is tracking cost important?

Cost tracking is essential in calculating the correct profit margin of an item. Your profit margin is the percentage of profit you keep from each sale. Understanding your profit margins can help you determine whether or not your products are priced correctly and if your business is making money.


Beyond that, tracking accurate costs of your inventory helps you calculate your true inventory value, or the total dollar value of inventory you have in stock. In most cases, your inventory is your largest business asset. Understanding your inventory valuation helps you calculate your cost of goods sold and your business profitability.


When tax time rolls around, you can include the cost of purchasing inventory on your tax return, which could reduce your business’ taxable income. Knowing your initial costs and maintaining accurate product costs can ultimately save you money.

Inventory costing methods

The IRS requires businesses that produce, purchase, or sell merchandise for income to calculate the cost of their inventory. Depending on the business’s size, type of business license, and inventory valuation, the IRS may require a specific inventory costing method. However, once a business chooses a costing method, it should remain consistent with that method year over year. Consistency helps businesses stay compliant with generally accepted accounting principles (GAAP).


The IRS explains costing methods in Publication 538 . If an item has an easily identifiable cost, the business may use the average costing method. However, some items’ cost may not be easily identified or may be too closely intermingled, such as when making bulk batches of items. In these cases, the IRS recommends either FIFO or LIFO costing methods.

First in, first out (FIFO)

The first in, first out (FIFO) costing method assumes two things:

  • The items purchased or produced first were also the first items sold.
  • The inventory items at the end of your reporting period are matched with the costs of related items recently purchased or produced.

The price of items often fluctuates over time, due to market value or availability. Inflation causes prices to increase over time. Deflation causes prices to decrease over time. Depending on how those prices impact a business, the business may choose an inventory costing method that best fits its needs.


During inflation, the FIFO method assumes a business’s least expensive products sell first. As prices increase, the business’s net income may increase as well. This process may result in a lower cost of goods sold compared to the LIFO method. However, during price deflation, the opposite may occur.


For example, a jeweler makes 10 gold rings in a month. When production started, it cost $100 to make gold rings. Due to inflation, the cost to make rings increased before production ended. By the end of production, gold rings cost $150 to make. Using FIFO, the jeweler would list COGS as $100, regardless of the price it cost at the end of the production cycle. Once those 10 rings are sold, the cost resets as another round of production begins.

Last in, first out (LIFO)

The last in, first out (LIFO) costing method assumes two things:

  • The items purchased or produced last are the first items sold.
  •  Closing inventory items are considered to be part of opening inventory from the same year. Items are assumed to have been sold in order of acquisition. That includes items in your inventory at the start of your year and those acquired during the year.

The LIFO method will have the opposite effect as FIFO during times of inflation. Items made last cost more than the first items made, because inflation causes prices to increase over time. The LIFO method assumes higher cost items (items made last) sell first. Thus, the business’s cost of goods sold will be higher because the products cost more to make. LIFO also assumes a lower profit margin on sold items and a lower net income for inventory. During times of deflation, the opposite may occur.


Let’s say the same jeweler makes 10 gold rings in a month and estimates the cost of goods sold using LIFO. The cost at the beginning of production was $100, but inflation caused the price to increase over the next month. By the end of production, the cost to make gold rings is now $150. Using LIFO, the jeweler would list COGS as $150, regardless of the price at the beginning of production. Using this method, the jeweler would report deflated net income costs and a lower ending balance in the inventory.


The IRS notes the LIFO method has complex rules and requires the completion of Form 970 . You only need to file this form with your yearly taxes the first year you use LIFO costing. Two LIFO rules highlighted in IRS Publication 538 are “dollar-value methodology” and “simplified dollar-value methodology.”

  • The dollar-value method groups together goods and products into one or more pools or classes of items.
  • The simplified dollar-value method uses a similar pooling system but uses government price indexes to determine the annual change in price.

Average cost method

To determine the average cost of an item, use the following formula:

Avg cost per unit = Total cost of goods purchased or produced in period Number of items purchased or produced in period

In other words, divide the total cost of goods purchased in a year by the total number of items purchased in the same year.


The average cost method, or weighted-average method, does not take into consideration price inflation or deflation. Instead, the average price of stocked items, regardless of purchase date, is used to value sold items. Items are then less likely to be influenced by price surges or extreme costs. The average cost method stabilizes the item’s cost from the year.


Here’s what this method looks like, using the same jeweler example: 10 gold rings cost $100 to make at the beginning of production. By the end of production, the rings cost $150 to make, due to price inflation. Let’s assume five rings were made at $100, and five were made at $150. Once all the rings are sold, the jeweler can calculate the average cost. Divide $1,250 (the total cost to make all the rings) by 10 (the total rings sold). The jeweler would report COGS as $125.


Examples of the cost of goods sold

When calculating COGS, the first step is to determine the beginning cost of inventory and the ending cost of inventory for your reporting period. Here’s an example.


Twitty’s Books began its 2018 fiscal year with $330,000 in sellable inventory. By the end of 2018, Twitty’s Books had $440,000 in sellable inventory. Throughout 2018, the business purchased $950,000 in inventory.


Let’s assume the bookshop is using the average costing method when determining their inventory’s starting and ending cost. Here’s what calculating COGS looks like:

($330,000) + ($950,000) – ($440,000) = $840,000 cost of goods sold


Twitty’s Books would then notate this amount on its 2018 income statement.


Cost of goods sold in a service business

Some service companies may record the cost of goods sold as related to their services. But other service companies—sometimes known as pure service companies—will not record COGS at all. The difference is some service companies do not have any goods to sell, nor do they have inventory.


Examples of service companies that do have inventory:

  • Construction
  • Plumbing and electrical
  • Repair and installation
  • Mining and manufacturing
  • Transportation and lodging

For example, a plumber offers plumbing services but may also have inventory on hand to sell, such as spare parts or pipes. To calculate COGS, the plumber has to combine both the cost of labor and the cost of each part involved in the service.


Or picture a bed and breakfast. Its primary service doesn’t require the sale of goods, but the business might still sell merchandise, such as snacks, toiletries, or souvenirs.


Examples of pure service companies that do not have inventory:

  • Accounting firms
  • Law offices
  • Doctors
  • Dancers
  • Real estate appraisers or firms
  • Business consultants


Cost of goods sold on an income statement

You should record the cost of goods sold as a business expense on your income statement. Under COGS, record any sold inventory. On most income statements, cost of goods sold appears beneath sales revenue and before gross profits. You can determine net income by subtracting expenses (including COGS) from revenues.


However, some companies with inventory may use a multi-step income statement. COGS appears in the same place, but net income is computed differently. For multi-step income statements, subtract the cost of goods sold from sales. The result is gross profits. You can then deduct other expenses from gross profits to determine your company’s net income.


Is the cost of goods sold an expense?

Yes, you should record the cost of goods sold as an expense. COGS is considered a cost of running the business. To create inventory, you have to spend money. That may include the cost of raw materials, cost of time and labor, and the cost of running equipment. Selling the item creates a profit, but a portion of that profit was lost, due to the cost of making the item.


Typically, COGS can be used to determine a business’s bottom line or gross profits. If the cost of goods sold is high, net income may be low. During tax time, a high COGS would show increased expenses for a business, resulting in lower income taxes.


Journal example of how to record the cost of goods sold

You should record the cost of goods sold as a debit in your accounting journal. You then credit your inventory account with the same amount.


For example, a local spa makes handmade chapstick. One batch yields about 500 chapsticks. It costs $2 to make one chapstick. To determine the cost of goods sold, multiply $2 by 500. The spa’s total cost of goods sold for a batch is $1,000. Recorded in their journal, the entry might look like this:


COGs journal

The above example shows how the cost of goods sold might appear in a physical accounting journal. The entry may look different in a digital accounting journal.


No matter how COGS is recorded, keep regular records on your COGS calculations. Like most business expenses, records can help you prove your calculations are accurate in case of an audit. Plus, your accountant will appreciate detailed records come tax time.


In accounting, debit and credit accounts should always balance out. The example above shows COGS listed as a positive expense. Inventory is listed as a negative credit. Inventory decreases because, as the product sells, it will take away from your inventory account.

Cost of goods sold and small business tax returns

Every business that sells products, and some that sell services, must record the cost of goods sold for tax purposes. The calculation of COGS is the same for all these businesses, even if the method for determining cost (FIFO, LIFO, or average costing method) is different. Businesses may have to file records of COGS differently, depending on their business license.


Record COGS on Line 8 of Form 1125-A for

C corporations

S corporations




Record COGS under Part 1: Income and calculate it in Part 3 on Schedule C for

Sole proprietorships

Single-member LLCs


COGS may be recorded on other tax forms for gross profit calculations, too. For partnerships and multiple-member LLCs, record COGS under Income for Form 1065 (partnership tax return). Corporations may record COGS under Income on Form 1120. S corporations may record COGS under Income on Form 1120-S.

The value of COGS for your business

Calculating and tracking COGS throughout the year can help you determine your net income, expenses, and inventory. And when tax season rolls around, having accurate records of COGS can help you and your accountant file your taxes properly. Determining the cost of goods sold is only one portion of your business’s operations. But understanding COGS can help you better understand your business’s financial health.




This article originally appeared on the Quickbooks Resource Center and was syndicated by


More from MediaFeed:

18 business ideas for freelancers


Editor’s note: Lantern by SoFi seeks to provide content that is objective, independent and accurate. Writers are separate from our business operation and do not receive direct compensation from advertisers or partners. Read more about our Editorial Guidelines and How We Make Money. The tips provided on this website are of a general nature and do not take into account your specific objectives, financial situation, and needs. You should always consider their appropriateness given your own circumstances.


Whether you’ve come to embrace WFH culture, need to supplement your income or have joined the Great Resignation and are now looking for more fulfilling work, starting a freelance business can be a great solution.


Freelancing often comes with a number of perks, like getting to be your own boss, setting your own hours, and working from wherever you like. Start-up costs are often low. And, if you need some capital to get your business going, you may qualify for a small business loan for self-employed people.


However, starting your own freelance business can take a lot of hard work and hustle, and it may be some time before you start making real money. If you’re up for the challenge, here are some home-based small business ideas to help you brainstorm the best way to tap into your talents and flex your entrepreneurial muscles.


Related: How to run a successful small business: 9 helpful tips




If you have a great eye and a decent camera, you may be able to turn your creativity into cash. One option is to sell your photos to a stock imagery site like Getty Images or Shutterstock. If your home is particularly picturesque, you might offer to do headshots or portraits in your yard or set up a home studio. If you’re interested in event photography, you can market your services to people who need professional photography for weddings, graduations, engagements or other events.


If you are both creative and technical, you might enjoy freelance web design. A web designer typically builds all the elements of a website, including the graphics, type fonts and layout. You’ll likely need to have some knowledge of basic programming languages, such as HTML, CSS and JavaScript, and also know your way around image editing software like Photoshop. You can learn these programs through research and practice or classes. When you’re ready, you can create your own website to showcase your skills and market yourself to potential clients.


Virtually every business needs creative elements like logos, web designing, memes, blog posts, infographics, ad banners and more. That means there is often a lot of opportunity for a good graphic designer to get freelance work. To become a graphic designer, you typically need to have strong drawing skills, knowledge of graphic design theory, and mastery of design software (such as Photoshop and Illustrator). You can take a degree course in designing or learn it online. Once you have some solid skills, you can start marketing your design services to potential clients.


mangpor_2004 / iStock


If you have an eye for color and composition and love to create beautiful, inviting spaces, you may want to think about getting gig work as an interior designer. You don’t necessarily need to have a degree in design to become an interior design consultant. You can just create a portfolio of some of the successful redesigns you’ve done and ask your friends and family to start recommending you.


FollowTheFlow / istockphoto


If you have video editing skills and are looking to freelance, you may find yourself in demand. With the growing prevalence of video in social media and marketing, the need for video producers has grown in recent years. Even if you don’t have a lot of experience cutting and editing video, you can hone your video skills with online classes and tutorials.  As a video producer, you can have the flexibility of working from home on a variety of projects while also utilizing your creativity.


BartekSzewczyk / istockphoto


Does your skill set include online advertising, content writing and SEO? If so, you may want to consider starting a digital marketing services business. When companies roll out new products, they often need help handling external communication and messaging, including email campaigns, online advertising, and social media marketing. And since it’s digital marketing, you aren’t likely to be rooted in any one location.




If you understand how engaging multimedia content can be used in marketing, then social media consulting may be a good fit for you. As a social media manager, you can help companies understand how to use Facebook, Twitter, Instagram and other platforms to reach their business goals. If you can stay on brand, share content appropriately, and reply to customers intelligently, you might make a great social media manager.


Companies of all types and sizes are using data analytics to understand trends in customer behavior. Data analysts use a variety of analytical tools to assess things like sales numbers and performance, identify market trends, and then write reports that chart their analysis and recommend future strategies. This can be a great freelance option for people who have been working in data analytics. However, beginners can take online courses and enroll in certification programs to master the required skills.


Lukas / Pexels


To stay competitive, email marketing is a must for many companies. And that can be great news if you are a strong and creative writer. Having a background in sales and marketing can also serve you well. Email marketing pros need to be able to craft creative and compelling copy about a company’s products, services and promotions, and convert readers into buyers. The job may also include monitoring email marketing campaigns, building email databases and tracking results.


fizkes / iStock


SEO service providers utilize search engine optimization to make sure a company’s site comes up high in online search results since a high-ranking placement generally translates into a lot of site traffic. If you’re an SEO pro who understands Google’s algorithms and the value of keyword frequency and meta descriptions — or you’re willing to learn — you may find your services in demand by a range of different organizations who need help with their SEO content strategy.




Blogging can be a profitable freelance job. If you are able to build a large following, you may be able to sell advertising space, which can bring in a small revenue stream. You can earn even more through sponsorships and affiliate marketing, which is when brands you believe in pay you for advocating their goods and services. If you don’t want the limelight yourself, you may be able to blog behind the scenes for companies and individuals (like high-profile folks who need a blog but don’t have the time to feed the beast) who may pay you handsomely by the hour or post.


pondsaksit / iStock


Copywriters typically create material that encourages consumers to buy goods or services. Copy can be used for advertising, websites, billboards, email campaigns, newsletters and more. As a freelance copywriter, you may find yourself creating catchy taglines for online or print advertisements or composing a unique blog article optimized for the web. Freelance copywriters can work directly with clients or through intermediaries such as agencies or online work exchanges.




FlamingoImages / istockphoto


If you’re an ace at organization and love throwing parties for your friends, event planning could be a good fit for your freelance business. An event planner ensures that events, such as parties, weddings, fund-raisers, meetings, and conventions, are planned, organized and executed correctly. The job typically includes scouting out locations, securing any services needed at the event (such as food, transportation, and entertainment), and being on-site the day of the event to make sure everything runs smoothly and everyone has a great time.


marcha212003 / istockphoto


Maybe math is second nature to you, or your grades on essays were always A+. Or perhaps you are a gifted piano player. Whatever your particular talent, there is a good chance that there are folks out there who need some assistance in that area. You can start advertising your tutoring or teaching services through friends, family and neighbors and build out from there.


Deposit Photos


If you’re an animal lover, pet-sitting allows you to enjoy pets without the responsibility of ownership. All you typically need to get started is an understanding of how to properly care for dogs and cats (or any other pets that may need your services). For many, this freelance job can be a win-win: You get to build relationships with the animals and get paid for showing some TLC.


Do you have a talent for crafting or creating handmade goods? It could be quilts, decorative pillows, hand-knit sweaters, jewelry, you name it. If so, you may be able to turn your hobby into a freelance business by advertising your goods on a craft-selling site like Etsy, Handmade at Amazon or ArtFire. In addition to selling online, you may also want to take advantage of opportunities to sell at street fairs, bazaars and festivals.




If you’re a fast and accurate typist, you may want to consider becoming a freelance transcriber. This kind of work involves listening to an audio recording, such as a webinar, video conference, interview, or speech, and then typing every word that is spoken into a document. There are all kinds of companies that hire freelance transcribers, as well as transcription services that hire individuals to transcribe audio for various clients.


fizkes / istockphoto


Once you have your cosmetology license, you typically have a lot of flexibility in terms of when and where you work. Who says you have to be in a salon all day? Many hairstylists and makeup artists work for themselves and offer mobile services, in which they serve clients right in the client’s home. Or you might offer services in your own home. You can also start a hair or makeup blog or post tutorials on YouTube to generate an additional revenue stream.




When it comes to starting a freelance business, having a good idea is only the beginning. A great next step is to develop a business plan. This involves deciding your company’s purpose, figuring out what service or products you will offer, and setting measurable targets and goals.


In addition, you may want to determine business financing options if you need initial capital to get started and then create a business budget.


It’s also a good idea to choose a business structure (such as a sole proprietorship or limited liability company), get any required licenses or permits, and purchase any equipment and supplies you may need, being sure to keep receipts since these expenses may qualify as self-employed tax deductions.


There’s much appeal to the freelance life. You get to call the shots and work as much or as little as you like. And turning your marketable skills into your own home-based freelance business may be easier than you think.


One of the biggest challenges you may face is how to fund your business. You may have savings to get you going or have family and friends who will help you launch. If not, you can look into getting a small business loan.


Learn more:

This article originally appeared on and was syndicated by


Lantern by SoFi:

This Lantern website is owned by SoFi Lending Corp., a lender licensed by the Department of Financial Protection and Innovation under the California Financing Law, license number 6054612; NMLS number 1121636. (

All rates, fees, and terms are presented without guarantee and are subject to change pursuant to each provider’s discretion. There is no guarantee you will be approved or qualify for the advertised rates, fees, or terms presented. The actual terms you may receive depends on the things like benefits requested, your credit score, usage, history and other factors.

*Check your rate: To check the rates and terms you qualify for, Lantern conducts a soft credit pull that will not affect your credit score. However, if you choose a product and continue your application, the lender(s) you choose will request your full credit report from one or more consumer reporting agencies, which is considered a hard credit pull and may affect your credit.

All loan terms, including interest rate, and Annual Percentage Rate (APR), and monthly payments shown on this website are from lenders and are estimates based upon the limited information you provided and are for information purposes only. Estimated APR includes all applicable fees as required under the Truth in Lending Act. The actual loan terms you receive, including APR, will depend on the lender you select, their underwriting criteria, and your personal financial factors. The loan terms and rates presented are provided by the lenders and not by SoFi Lending Corp. or Lantern. Please review each lender’s Terms and Conditions for additional details.

Personal Loan:

SoFi Lending Corp. (“SoFi”) operates this Personal Loan product in cooperation with Even Financial Corp. (“Even”). If you submit a loan inquiry, SoFi will deliver your information to Even, and Even will deliver to its network of lenders/partners to review to determine if you are eligible for pre-qualified or pre-approved offers. The lenders/partners receiving your information will also obtain your credit information from a credit reporting agency. If you meet one or more lender’s and/or partner’s conditions for eligibility, pre-qualified and pre-approved offers from one or more lenders/partners will be presented to you here on the Lantern website. More information about Even, the process, and its lenders/partners is described on the loan inquiry form you will reach by visiting our Personal Loans page as well as our Student Loan Refinance page. Click to learn more about Even’s Licenses and DisclosuresTerms of Service, and Privacy Policy.

Student Loan Refinance:

SoFi Lending Corp. (“SoFi”) operates this Student Loan Refinance product in cooperation with Even Financial Corp. (“Even”). If you submit a loan inquiry, SoFi will deliver your information to Even, and Even will deliver to its network of lenders/partners to review to determine if you are eligible for pre-qualified or pre-approved offers. The lender’s receiving your information will also obtain your credit information from a credit reporting agency. If you meet one or more lender’s and/or partner’s conditions for eligibility, pre-qualified and pre-approved offers from one or more lenders/partners will be presented to you here on the Lantern website. More information about Even, the process, and its lenders/partners is described on the loan inquiry form you will reach by visiting our Personal Loans page as well as our Student Loan Refinance page. Click to learn more about Even’s Licenses and DisclosuresTerms of Service, and Privacy Policy.

Student loan refinance loans offered through Lantern are private loans and do not have the debt forgiveness or repayment options that the federal loan program offers, or that may become available, including Income Based Repayment or Income Contingent Repayment or Pay as you Earn (PAYE).

Notice: Recent legislative changes have suspended all federal student loan payments and waived interest charges on federally held loans until 05/01/22. Please carefully consider these changes before refinancing federally held loans, as in doing so you will no longer qualify for these changes or other future benefits applicable to federally held loans.

Auto Loan Refinance:

Automobile refinancing loan information presented on this Lantern website is from Caribou. Auto loan refinance information presented on this Lantern site is indicative and subject to you fulfilling the lender’s requirements, including: you must meet the lender’s credit standards, the loan amount must be at least $10,000, and the vehicle is no more than 10 years old with odometer reading of no more than 125,000 miles. Loan rates and terms as presented on this Lantern site are subject to change when you reach the lender and may depend on your creditworthiness. Additional terms and conditions may apply and all terms may vary by your state of residence.

Secured Lending Disclosure:

Terms, conditions, state restrictions, and minimum loan amounts apply. Before you apply for a secured loan, we encourage you to carefully consider whether this loan type is the right choice for you. If you can’t make your payments on a secured personal loan, you could end up losing the assets you provided for collateral. Not all applicants will qualify for larger loan amounts or most favorable loan terms. Loan approval and actual loan terms depend on the ability to meet underwriting requirements (including, but not limited to, a responsible credit history, sufficient income after monthly expenses, and availability of collateral) that will vary by lender.

Life Insurance:

Information about insurance is provided on Lantern by SoFi Life Insurance Agency, LLC. Click here to view our licenses.





Featured Image Credit: