Skip to main content

How sales-based cost of goods sold works in Finaloop

Set up sales-based cost of goods sold (COGS, shown in settings as Sales based), from your opening balance and inventory purchases to cost per unit and merging products, so each sale records what the product cost you.

Written by Ryan

About

Applies to: Finaloop Accounting.

With sales-based cost of goods sold (COGS), Finaloop records what your products cost you at the moment they sell, using the cost per unit you give us. Finaloop shows this method in your inventory settings as Sales based. We've also created a video that covers how we track your COGS and inventory using the sales based method.

Using sales based COGS:

  • When you purchase inventory, your inventory balance increases.

  • When you sell inventory, COGS are recorded in your P&L and the Inventory value in the balance sheet is reduced.

  • For example, you sell 5,000 units at $1 on 1 June. COGS in the P&L increases automatically by $5,000 and the Inventory value in the balance sheet decreases by a corresponding amount ($5,000).

You can track all this movement in Inventory overview (Inventory → Inventory overview).

The Inventory overview page showing opening balance plus purchases minus COGS equals closing balance for the year.

① Opening balance, ② Purchases, ③ COGS, ④ Closing balance.

The process starts with your opening balance, then how to track your inventory purchases, and lastly how to manage your COGS in Finaloop under the sales based tracking method.


1. When should you use sales based COGS?

Use sales based COGS when you want COGS recorded as your products sell, using the cost per unit you give us. Not sure which method fits? See How to choose your COGS tracking method in Finaloop.

The rest of this guide assumes you've decided sales based is the right choice for you.


2. How Finaloop calculates sales-based COGS

Finaloop multiplies the units you sold by your cost per unit, product by product and channel by channel. A unit's cost counts when the unit sells, not when you bought it. Buying 10,000 units in March doesn't dent March's margin; selling them over the next six months does.

Three inputs go into the calculation:

Input

Where it comes from

Units sold

Synced automatically from each connected sales channel and from your wholesale invoices

Units restocked

Synced from your sales channels where they report restocks, or entered by you

Cost per unit

Synced from Shopify where it's available, or entered by you on the Cost per unit tab, in a bulk edit, or by CSV

Every cost you enter carries a start date and stays in effect until you enter a new one. Finaloop applies each cost to the units depleted while it was in effect, then adds those pieces together.

For example, a SKU with 8,000 units depleted at $1.00 and 3,000 depleted at $100.00:

  • 8,000 × $1.00 = $8,000

  • 3,000 × $100.00 = $300,000

COGS is $308,000, and the average cost is $308,000 ÷ 11,000 = $28.00. This is why the Average cost column on the Products page rarely matches the cost you last typed in: it's a weighted average across the period you're viewing, not your current cost.


3. Setting up your opening balance

Click Inventory settings (top right of any Inventory page), open the Opening balance tab, and enter the opening balance in My inventory balance on (the date shown is the day before your books start).

This is the balance of your inventory on the last day of the year before your books start in Finaloop. For example, if your books start on January 1, 2026, enter the inventory balance on December 31, 2025. You can find this in the balance sheet in your previous accounting software or in last year's tax return, if it was already filed.

This is a one-time task that ensures we're starting off with an inventory starting point that's fully reconciled to your tax return. Adding an opening balance needs an active subscription.


4. Track inventory purchases

The next part of your inventory process after the opening balance is purchasing your inventory products, supplies, and materials. You track them on Inventory purchases (Inventory → Inventory purchases). For a guide to the page, see Tracking inventory purchases with sales-based COGS.


5. Managing products

Head to Products (Inventory → Products). Here you'll see all your products from your connected sales channels (Shopify, Amazon, TikTok Shop, Walmart) and from your wholesale invoices, with the cost per unit synced from Shopify. Other sales channels don't share cost data, so you add those costs yourself.

The Products page with the period, search and Filters controls, the Actions button and the Net units depleted and Average cost columns.

① Period, search and Filters, ② Actions, ③ Net units depleted and Average cost.

The stock levels and inventory values are displayed by product/SKU.

For the page's filters, Actions and columns, see Navigating the Products page.


Merge multiple products

Merge identical products from different sources, such as Amazon and Shopify, under one primary product so one cost per unit applies to all of them. A cost synced from Shopify only reaches your Amazon or TikTok Shop sales once those copies are merged into the Shopify product as primary. For the steps, see Merging multiple products.


6. How to track your sales based COGS

The COGS page (Inventory → COGS) shows your COGS for the period.

COGS can also include dead inventory, dropshipping, and purchases recorded straight to COGS. In addition, product giveaways and product donations can also reduce your inventory. For dropshipping, see Managing Dropshipping (Sales-Based COGS).

There are two ways to track sales based COGS when inventory is sold:

  • Track per SKU by using an average cost per unit

  • Track per channel by inputting a total COGS number

Option 1: Track per SKU using an average cost per unit

You can upload the average cost per product into Finaloop or if you use Shopify, we can sync these costs automatically. For Shopify, Amazon, TikTok Shop, Walmart, and wholesale sales on invoices (created in Finaloop or synced from SPS Commerce or Crstl), we'll use this data to calculate COGS based on real-time sales.

For sales outside of these channels, you can easily update your data across all your SKUs at once for:

  • Units sold and units restocked in one easy upload

  • Dead inventory, product giveaways, and product donations.

This is especially helpful for brands selling outside of these channels, like eBay or Etsy, or if you restock returned inventory yourself.


Step 1: Activating per SKU method

Click Inventory settings (top right of any Inventory page). On the General tab, under Sales channels – report per SKU, make sure the toggle is on for each sales channel. For Shopify, you can also choose Sync quantities and Sync cost per unit.

Important: Turning a sales channel's toggle off removes all per-SKU COGS data for that channel, including manual quantity adjustments, product giveaways and dead inventory. Turning off Sync cost per unit deletes the costs already synced from Shopify, except costs in closed books.


Step 2: Updating product cost per unit

If your product costs are updated in Shopify, we'll sync these to Finaloop automatically. Otherwise, you can add a cost for a single product, edit a historical cost, or update costs in bulk or by CSV. For the steps, see Adding cost per unit with sales-based COGS.

Any product without a cost per unit adds $0 of COGS when it sells, so its margin looks like 100%. The Products page shows how many products are missing a cost: [n] products are missing cost per unit for COGS calculation. Turn on the toggle next to it to show only those products, then add their cost per unit.

The Products page filtered to products missing a cost per unit, all showing 0.00 in Average cost.

① The missing-cost toggle, ② Average cost column.


Step 3: Bulk updating quantities

  1. Go to Products → Actions → Bulk unit edit.

  2. Choose the tab: COGS, Dead inventory, Product giveaways or Product donations.

  3. Select the Sales channel from the dropdown.

  4. Select the Update method for calculating the adjustment:

    • Replace: replaces the existing records for the selected product in the chosen month.

    • Add on top: adds the value to the total of existing records in the system.

  5. Update the quantity of Units fulfilled and Units restocked for each month. We'll report the adjustments in your books on the last day of the month.

  6. In the Save changes? bar, click Save.

  7. In Confirm changes, click Confirm.

You'll see Successfully updated, and the adjustments appear in your books on the last day of each month.

You can also click Actions → Import CSV file and follow the instructions to add the quantities for all of your SKUs in one quick upload.

You can duplicate the product from the right side of the row and add multiple months for each product at once.

Check out this Bulk unit edit walkthrough (interactive demo) to watch it in action!

If you sell through sales channels that don't sync units to Finaloop, add your quantity sold for each product with our bulk update tool, or record them per channel (see "Option 2: Track per channel by inputting a total COGS number").


Option 2: Track per channel by inputting a total COGS number

Entering COGS per channel is handy if you track COGS outside of Finaloop, such as an inventory management system.

To add manual COGS (per channel):

On the COGS page, click Report per channel (top right). This opens the New report pane.

The New report pane on the COGS page with Type, Period, Amount, Sales channel and Memo fields.

① Type, ② Period, ③ Amount, ④ Sales channel.

  1. Type: Select from COGS, Dead inventory, Product giveaways or Product donations.

  2. Period: Select the period (Day, Month or Range) and then the dates.

  3. Amount: Enter the value.

  4. Sales channel: Select the sales channel.

  5. Memo (optional): Add a note.

  6. Click Save. The costs are spread evenly over the selected period.


7. Sales based COGS and Inventory in your financials

Under the sales based COGS method, your inventory is shown in your balance sheet and your COGS will be shown in your P&L as the products are sold (or, if working with the per channel method, when you input the channel COGS data into Finaloop).

  1. Go to Report center → Balance Sheet to see your inventory broken down by the status per your updates on the Inventory purchases page.

  2. Go to Report center → Profit & Loss to see your COGS under Cost of delivery → Product COGS. You can find them here with many sub categories so you can track in real time which costs are going where. For a tour of the report, see Reading your Profit & Loss.

  3. For sales based COGS, here's where you will see transactions for product giveaways and dead inventory:

    • Product giveaways: Variable sales & marketing → Product giveaways

    • Dead inventory: Cost of delivery → Other cost of delivery


8. What's InventoryIQ?

InventoryIQ, Finaloop's inventory management product, tracks stock per SKU, calculates landed cost and records COGS on a first in, first out (FIFO) basis.

To find out more about InventoryIQ, head over to the article How to choose your COGS tracking method in Finaloop.

If you've decided that InventoryIQ is the route for you, then head over to InventoryIQ: Everything you need to know and check out the video how to use InventoryIQ.


FAQ

Why does a product's margin look impossibly good?

It's usually missing a cost per unit. With no cost, COGS for that product is $0, so the full sale price counts as profit. Turn on the missing-cost toggle on the Products page and add the costs (see "Step 2: Updating product cost per unit").


Why is the missing-cost count much higher than my actual product count?

It's usually one of two things. The same product from Shopify, Amazon and TikTok Shop counts as three products until you merge them (see "Merge multiple products"). And products you no longer sell still count: use Filters → Attributes → Active to see only what you're selling now, and Actions → Hide from product list for the rest. Merge your duplicates before you start entering costs, so you only enter each cost once.


I entered a cost but the product still shows the old number. Why?

Check two things. First, the cost's From date: a cost dated June 1 doesn't apply to units that sold in March, so compare it with the period you're viewing. Second, after a merge only the primary product's cost is used: open the product, expand Product details, and check which product is primary.


Why does Average cost differ from the cost I entered?

Because it's a weighted average across the period. If your cost changed mid-period, the average sits between the old cost and the new one (see "How Finaloop calculates sales-based COGS").


What happens to COGS when a customer returns something?

Nothing, unless the unit is restocked. A refund and a restock are two separate events: refunding money doesn't put a unit back in your inventory, only a restock does. Restocked units reduce net units depleted, which reduces COGS.


Can I change a cost for a past period?

Yes, as long as that period's books aren't closed. Add a cost with an earlier From date, and Finaloop recalculates COGS from that date forward.


Related articles


Need help?

If you have any questions or need assistance, reach out to us at [email protected]. We're here to help make the process as smooth as possible!

Did this answer your question?