How to Manage Ecommerce Accounting: A Beginner’s Guide

Updated:

Your supplier asks whether you want to reorder, and there’s money in the bank. But some of it belongs to the tax authority, another bill is due, and your latest payout includes sales from several days.

That makes a simple buying decision harder than it should be. You can see money moving without knowing what the store has earned or what you can safely spend.

This guide shows how to turn those transactions into reliable books. We’ll follow one small store from customer payments through inventory, expenses, and monthly reports, so your next stock order rests on more than a reassuring bank balance.

How Ecommerce Accounting Works

Bookkeeping means recording transactions and checking them against bank statements, processor reports, and other supporting records. Those checks are called reconciliation. Accounting uses those records to work out profit, prepare reports, and guide decisions.

For an online store, follow two connected flows:

  • Customer orders → payment processor → bank account.
  • Inventory purchases → stock on hand → cost of goods sold.
How Ecommerce Accounting Works: Two Connected Ecommerce Accounting Flows; Customer Orders; Payment Processor; Bank Account; Inventory Purchases; Stock On Hand; Cost Of Goods Sold; Match Sales With Product Costs

A payment processor handles customer payments before transferring money to your bank. Cost of goods sold, or COGS, is the recorded cost of the products you sold.

These flows explain why revenue, profit, and cash differ. Revenue measures sales activity. Profit subtracts the associated costs. Cash shows money received and paid.

How Ecommerce Accounting Works: Ecommerce Revenue, Profit And Cash Explained; Revenue; Sales Activity; Profit; Revenue Minus Associated Costs; Cash; Money Received And Paid; A Bank Balance Shows Only Part Of The Picture

A store dashboard, processor deposit, or bank balance gives you part of the picture. You need connected records to establish profitability.

Throughout this guide, imagine you run a small online store selling washable cat feeding mats. The figures are hypothetical US dollar amounts, not industry benchmarks. The example uses inventory-based accrual accounting, and all its activity takes place within one month.

1. Set up Your Accounting System

Choose Cash or Accrual Accounting

Your accounting method decides when transactions enter the books.

Cash accounting generally records income when received and expenses when paid. Accrual accounting records revenue when earned and expenses when incurred. For inventory, that connects a product’s cost with its sale.

Choose Cash Or Accrual Accounting: Cash Vs Accrual Accounting For Ecommerce; Cash Accounting; Generally Records Income Received And Expenses Paid; Inventory-Based Accrual Accounting; Unsold Stock Remains An Asset; Recognize Product Cost With The

I would use accrual reports to understand a stock-based store’s performance. Buying mats in one month and selling them in another shouldn’t make the first month look disastrous and the second look unusually profitable.

Confirm your permitted tax method and inventory treatment with a qualified local adviser before setting up the books. US rules provide inventory exceptions for qualifying small businesses, and changing an established accounting method generally requires IRS approval.

Also, US cash accounting doesn’t always mean waiting for the bank deposit. Funds available without substantial restrictions, or received by your agent, can count as received earlier. The IRS accounting-method rules explain these distinctions.

Separate Business Finances and Establish Opening Balances

Use dedicated business bank and payment accounts. Record money you put into the business as an owner contribution, and keep owner withdrawals separate from expenses.

Next, choose a bookkeeping start date and document what the business owns and owes on that date:

  • Bank and processor balances.
  • Inventory quantities and costs.
  • Unpaid customer invoices and supplier bills.
  • Loans and tax liabilities.
Separate Business Finances And Establish Opening Balances: Set Up Ecommerce Opening Balances; Separate Business Accounts; Owner Contribution; Cash And Processor Funds; Inventory And Unpaid Invoices; Bills, Loans And Taxes Owed; Check Imports Against

If you import older transactions, check that they don’t duplicate amounts included in your opening balances.

Create a chart of accounts—the categories used in your books. Include product sales, shipping income, discounts, refunds, payment fees, inventory, COGS, operating expenses, taxes owed, and processor funds.

Save order exports, payout statements, supplier invoices, receipts, and stock records in monthly folders or attach them to entries. A bank payment may not explain what you bought. For US supporting-document requirements, consult the IRS recordkeeping guidance; follow your local retention requirements.

Choose Software and Professional Support

Your ledger is the main record of your accounts. I would compare Xero and QuickBooks Online, starting with whichever your bookkeeper supports well.

Check bank and sales-channel connections, currencies, inventory features, accountant access, and transaction limits. Confirm whether each connection imports fees and payouts as well as sales.

A spreadsheet can work initially if you can maintain complete records and reconcile every balance. Once that becomes difficult, the subscription you avoided may be costing you evenings.

Add a settlement connector when manually breaking down payouts takes too long. A2X summarizes settlement activity for Xero or QuickBooks Online; it works alongside your ledger and stock records.

Software and professional help can work together:

WorkflowYour WorkWhat You Pay For
Owner-managedRecord transactions, reconcile accounts, and review reportsSoftware and occasional setup or tax advice
Outsourced bookkeepingSupply documents, explain unusual transactions, and approve decisionsSoftware, routine bookkeeping, monthly reports, and agreed tax support
HybridCapture receipts, check imports, and answer questionsSoftware, professional setup, and monthly review; agree tax fees separately

For a beginner with limited time, I would choose a hybrid arrangement: professional setup, routine owner checks, and an agreed monthly review.

Hire a bookkeeper when reconciliations fall behind or unexplained balances persist. Use an accountant or qualified tax professional for accounting methods, inventory treatment, tax filings, and selling across jurisdictions. In the US, a certified public accountant (CPA) may fill that role.

Agree on responsibilities, monthly deliverables, and fees. Compare the full cost of software, connectors, inventory tools, setup, support, and correction time.

2. Record Sales and Reconcile Payouts

Separate Sales, Fees, Refunds, and Tax

Start with order records and the processor’s settlement breakdown. A settlement groups the activity behind a payout.

Record the underlying sales and deductions separately. Treating the net deposit as revenue hides fees, refunds, and tax inside one number.

Refunds reduce sales, while any processing fees you still pay remain expenses. Handle the physical return separately: sending money back doesn’t prove that a usable product came back.

Sales tax imposed on buyers and collected for remittance belongs in a liability account—money owed—rather than revenue. Paying it to the authority reduces that liability. This matches the IRS treatment of buyer-imposed sales taxes.

Before configuring tax collection, confirm where you must register, which products are taxable, and who must collect and file. Keep marketplace-handled tax separate from your direct-store obligations. A marketplace collecting tax can still leave seller registration or reporting duties, as Streamlined Sales Tax explains.

Match Payouts to the Bank and Processor Balance

Use a separate clearing account in your books for each processor that pays you independently. This account tracks money the processor holds before transferring it to your bank. Customer receipts increase it; refunds, fees, and payouts reduce it.

For each payout:

  1. Obtain its transaction breakdown.
  2. Record the components in the right accounts.
  3. Record the payout as a transfer from the processor account to the bank.
  4. Match that transfer to the bank deposit using the payout identifier.

Give sales one route into your books. If a connector has already recorded them, the bank deposit should match the transfer already recorded.

Here’s the cat-mat store’s completed settlement. You ship 50 mats at $20 each and collect shipping income and tax. Then you refund five mats and their related tax, keep the shipping income, and pay processing fees.

Match Payouts To The Bank And Processor Balance: How Ecommerce Sales Become A Bank Payout; Product Sales +$1,000; Shipping Income +$50; Sales Tax Collected +$84; Product Refunds −$100; Tax Refunded −$8; Processing Fees −$32; Expected Bank Deposit

The expected payout counts everything collected, less refunds and fees:

Settlement ComponentAmount
Product sales$1,000
Shipping income$50
Sales tax collected$84
Product refunds−$100
Tax refunded−$8
Processing fees−$32
Expected bank deposit$994

The calculation is:

$1,000 + $50 + $84 − $100 − $8 − $32 = $994.

Net revenue is $950: product sales plus shipping income, less product refunds. The remaining tax liability is $76.

Match Payouts To The Bank And Processor Balance: Reconcile Your Ecommerce Processor Balance; Opening Balance $0; Customer Receipts +$1,134; Refunds −$108; Fees −$32; Payout −$994; Closing Balance $0; Pending Payouts; Reserves; Disputes; Document

The tax amounts are illustrative inputs, not a rate to apply to your store. In this example, you must remit the tax. All five returned mats are resalable, and there are no discounts, reserves, or other adjustments.

Matching the deposit is only part of reconciliation. You must also explain the processor’s full closing balance. Start with its opening balance, add customer receipts, subtract refunds, fees, and payouts, then include documented adjustments.

Here, a zero opening balance plus $1,134 received, less $108 refunded, $32 in fees, and the $994 payout leaves zero.

In your actual books, remaining funds might belong to pending payouts, reserves, or disputes. Check dates, currencies, missing imports, and duplicates when amounts differ. Carry documented pending funds forward. Don’t turn an unexplained gap into a “processing fee” just to finish.

You don’t need to build a reconciliation sheet from scratch. Start with one payout in this workbook to separate matched money from differences that still need an explanation.

Lead Magnet Cover
FREE WORKSHEET

Free Ecommerce Reconciliation Workbook

Steal our tracker to stop guessing why a payout and your bank disagree, and see which record to open first.
Send My Free Tracker ❯
Instantly delivered to your inbox
Customer Avatar 1
Customer Avatar 2
Customer Avatar 3
Customer Avatar 4
Rated highly by 12,000+ users

3. Track Inventory and Cost of Goods Sold

Track stock by SKU, the code identifying each product variant. Your record should show opening quantities, purchases, shipments, returns, and adjustments, including your stock held by a fulfillment company.

Record both quantity and cost. Landed unit cost includes the purchase price and attributable costs of getting stock ready for sale, such as inbound freight, duties, and handling.

Under inventory-based accrual accounting, unsold goods remain an asset. Their cost becomes an expense when you sell them. These cost and timing principles are described in IAS 2 Inventories.

Use a consistent costing method permitted by your accounting requirements. First-in, first-out assigns the oldest stock costs to sales first; weighted average uses an average unit cost. Keep delivery to customers and payment processing fees separate from landed inventory cost.

3. Track Inventory And Cost Of Goods Sold: Ecommerce Inventory And Cogs: A Worked Example; Opening Stock 100; Purchased +50; Shipped −50; Resalable Returns +5; Closing Stock 105; 105 × $8 = $840 Inventory; 45 Net Mats Sold × $8 = $360 Cogs; $800 +

When a resalable return comes back, restore it at its recorded cost and reverse the related COGS. Record damaged stock and losses separately rather than quietly treating them as sales.

For the mat store, every unit costs $8:

Stock MovementUnits
Opening stock100
Purchased+50
Shipped to customers−50
Resalable returns received+5
Closing stock105

Closing inventory is 105 × $8 = $840.

To calculate COGS from periodic stock records, count the cost available for sale and subtract what remains. Adjust separately for losses or other movements unrelated to sales.

3. Track Inventory And Cost Of Goods Sold: What Goes Into Ecommerce Landed Inventory Cost?; Purchase Price; Inbound Freight; Duties And Handling; Costs To Get Stock Ready For Sale; Unsold: Inventory Asset; Sold: Cost Becomes Cogs; Keep Customer

For this example:

$800 opening inventory + $400 purchases − $840 closing inventory = $360 COGS.

That matches 45 net mats sold at $8 each.

Count your stock and investigate differences before trusting its value or placing another order. A spreadsheet can’t tell you that a box is missing.

My jewellery store attempt in 2013–2014 started with roughly $1,200, and I lost most of that investment after inadequate market research left me with unsold inventory. What stayed with me was how easily money could become stock that didn’t move. Better records wouldn’t have created demand, but knowing what’s already on the shelf belongs before the next purchase.

4. Record Expenses and Other Cash Movements

Capture each cost with its date, supplier, amount, category, payment account, and supporting document. Include business costs you paid personally, and record whether the business owes you repayment or you contributed the money.

If you already entered a supplier bill, match its payment to that bill. The payment clears what you owe; it shouldn’t create another expense.

4. Record Expenses And Other Cash Movements: Ecommerce Operating Expenses: Count Each Cost Once; Processing Fees $32; Customer Delivery $60; Packaging Consumed $18; Software $30; Total Operating Expenses $140; $32 Already Recorded In Settlement

The same applies to credit cards. Record the purchase once, then treat the card repayment as a transfer that reduces the card balance.

Check what each cash movement represents:

  • Inventory purchases add stock before becoming COGS.
  • Equipment may need recording as an asset rather than an immediate expense.
  • Loan principal reduces debt, while interest is recorded separately.
  • Owner withdrawals belong outside operating expenses.
4. Record Expenses And Other Cash Movements: Classify Ecommerce Payments Before Recording Expenses; Supplier Bill Payment; Clear The Bill; Avoid A Second Expense; Credit-Card Repayment; Reduce The Card Balance; Stock And Equipment; Check Asset

For the mat store, record these operating costs:

ExpenseAmount
Processing fees already recorded$32
Delivery to customers$60
Dispatch packaging consumed$18
Software$30
Total operating expenses$140

The $32 fee appears once. The $400 stock purchase stays in the inventory calculation, and the $360 COGS remains separate from these operating expenses.

5. Automate Routine Work and Review Exceptions

Before connecting tools, decide which system posts each transaction type: sales, refunds, fees, stock movements, COGS, and transfers.

For the mat store, your settlement connector could post sales, refunds, fees, and payout transfers. Your inventory system or agreed month-end process could post COGS. The bank feed then matches transfers and payments.

Keep order, payout, and source identifiers so you can trace summarized entries back to their details.

Before enabling recurring posting, check a complete settlement, a refund, and activity spanning month-end. Confirm that the accounts, tax treatment, dates, and amounts are correct, and that another integration won’t duplicate them.

5. Automate Routine Work And Review Exceptions: Prevent Duplicate Ecommerce Accounting Imports; Settlement Connector; Sales, Refunds, Fees And Payout Transfers; Inventory System Or Agreed Close Process; One Source Posts Cogs; Bank Feed; Match

Then automate work with clear rules:

  • Bank and card imports.
  • Receipt collection.
  • Settlement summaries.
  • Approved categories for predictable recurring costs.

I would review exceptions weekly: failed connections, missing documents, unmatched payments, and unexpected balances. That gives automation somewhere useful to send problems.

AI tools such as ChatGPT can help suggest categories, extract receipt details, or explain report terms. Compare amounts and proposed entries with the source documents before accepting them.

Keep tax decisions, inventory valuation, unusual adjustments, unexplained differences, and final close approval with a competent person. A plausible category doesn’t prove that a transaction is correct—or that every transaction arrived.

6. Close Your Books Each Month

Closing the books means checking and completing a period so you can use its reports.

Capture receipts and resolve import problems during the month. Then use this month-end checklist:

  1. Gather bank, credit-card, processor, sales, inventory, and supplier records.
  2. Reconcile every bank, card, and processor balance to its supporting statement or report.
  3. Compare sales-channel totals with ledger sales, refunds, shipping income, and taxes using matching periods and time zones.
  4. Complete inventory and COGS adjustments, including resalable returns and stock losses.
  5. Record unpaid bills under your accrual method, and clear duplicates, uncategorized entries, and unusual balances.
  6. Reconcile transaction taxes from collections through refunds and remittances, separating marketplace-handled amounts.
  7. Save the reviewed reports and reconciliations, then mark the period complete. Lock it if your software allows, and keep a record of later corrections.

Pay attention to month-end timing. A sale earned this month can reach the bank next month. Your books should explain that gap through the processor balance.

6. Close Your Books Each Month: Ecommerce Month-End Close Workflow; 1. Gather Evidence; Statements, Sales, Stock And Supplier Records; 2. Reconcile Balances; Bank, Cards, Processors And Sales Totals; 3. Complete Adjustments; Cogs, Returns, Losses

Also confirm that only one system posts COGS. Two accurate imports can still produce one very inaccurate report.

Maintain a filing calendar and update a separate income-tax estimate. Collected sales tax and tax on your profit are different obligations. US businesses may need estimated payments; the IRS estimated-tax guidance explains who must pay and when.

Save your profit and loss statement, balance sheet, and cash-flow statement alongside the reconciliations. For your tax handoff, provide the same ledger, inventory valuation, supporting documents, and a short list of unresolved questions with amounts and source references.

If you hire help, make these deliverables part of the agreement.

7. Use Your Reports to Manage Profit and Cash

Check Whether the Store Is Profitable

Read the profit and loss statement in order. Subtract COGS from net revenue to find gross profit, then subtract the remaining expenses to find profit before income tax.

Here’s the completed mat-store example, using only the costs listed:

Profit and Loss ItemAmount
Net revenue, including retained shipping income$950
Cost of goods sold−$360
Gross profit$590
Operating expenses−$140
Profit before income tax$450
Check Whether The Store Is Profitable: Read An Ecommerce Profit And Loss Statement; Net Revenue $950; Less Cogs $360; Gross Profit $590; Less Operating Expenses $140; Profit Before Income Tax $450; Gross Margin 62.1%; $590 ÷ $950 × 100; Gross Margin

Gross margin tells you what share of net revenue remains after COGS. Divide gross profit by net revenue:

$590 ÷ $950 × 100 = 62.1%.

Check Whether The Store Is Profitable: Check Ecommerce Selling Costs Before Discounting; Gross Profit $590; Product Cost Already Deducted; Delivery −$60; Processing −$32; Packaging −$18; Software −$30; Profit Before Income Tax $450; Review All Costs

That percentage doesn’t include the operating expenses listed below gross profit. Delivery costs and processing fees still need paying.

When profit changes, look for the cause before changing prices. Check supplier costs, discounts, refunds, delivery charges, and fees.

I would review the amount left after both product and selling costs before offering a discount. A healthy-looking gross margin can still leave little room once you pay to deliver the order.

Check What Cash You Can Spend

Use the balance sheet to see cash, processor funds, inventory, unpaid bills, loans, and taxes owed. The cash-flow statement explains past cash movements.

For spending decisions, build a forecast that puts expected receipts and payments on their actual dates. Include payout delays, stock purchases, refunds, operating bills, debt payments, and taxes.

Start with available cash, add expected receipts, and subtract scheduled payments.

Check What Cash You Can Spend: Build An Ecommerce Cash Forecast Before Spending; Opening Cash $1,000; Processor Payout +$994; Stock Purchase −$400; Delivery, Packaging, Software −$108; Sales Tax Paid −$76; Forecast Closing Cash $1,410; Processing

The mat store starts with $1,000 cash. Its forecast includes the $994 payout and these payments, all clearing within the example month:

Cash MovementAmount
Opening cash$1,000
Processor payout+$994
Stock purchase−$400
Delivery, packaging, and software−$108
Sales tax remittance−$76
Forecast closing cash$1,410

The calculation is:

$1,000 + $994 − $400 − $108 − $76 = $1,410.

The processing fee is already deducted from the payout, so don’t subtract it again.

Check What Cash You Can Spend: Why Ecommerce Profit Can Exceed Cash Growth; Profit Before Income Tax $450; Less Inventory Increase $40; Cash Increase $410; Stock Purchased $400; Cogs Recognized $360; $40 Remains Invested In Stock; Opening Inventory

Cash rises by $410, while profit before income tax is $450. The $40 difference is the inventory increase from $800 to $840. You bought $400 of stock but used only $360 as COGS.

The remaining mats have value, but they can’t pay a software bill.

Before spending the closing cash, reserve any required income-tax amount and money committed to upcoming payments. Compare the forecast with actual cash regularly, and adjust purchasing or payment timing while you still have choices.

A positive month-end balance can still hide a shortage before your next payout. Use the Ecommerce Cash Calculator to find the tightest date and estimate how much room remains for a stock order.

Lead Magnet Cover
FREE CALCULATOR

Free Ecommerce Cash Calculator

Use our free calculator to set a stock budget that still leaves your bills, taxes and safety cushion covered.
Send My Free Calculator ❯
Instantly delivered to your inbox
Customer Avatar 1
Customer Avatar 2
Customer Avatar 3
Customer Avatar 4
Rated highly by 25,000+ users

What Next?

Take your latest processor payout and trace it from customer receipts through refunds and fees to the bank deposit. Record any difference with its source and amount, then resolve it before adding more automation.

Use the social buttons to share this guide when a conversation about store sales needs a clearer picture of profit and spendable cash.

Which part of your current records would you least trust when deciding whether to reorder stock? Tell me in the comments, and bring any other accounting questions too.

Share this post with your friends & followers:
Abhishek is a data scientist by day & an online entrepreneur by night. He is known for his ability to simplify complex concepts and make them accessible to a wider audience. He started Passive Book to share his insights and experiences on how to effectively build an online business, which has quickly become a go-to resource for anyone looking to bootstrap an online business from scratch.

Leave a Comment

Build an Online Business 
Without Quitting Your Job

Join 10,000+ solopreneurs building six-figure online businesses from scratch with limited time & tight budgets using smart systems & AI automations.
Optin Form - Main

Free Bonus: Get access to our AI workflows & cheat sheets
Person sitting with laptop in home office environment with launching rocket, coffee mug, sleeping dog, bookshelf, and house plant illustrating work-from-home online business lifestyle. Decorative image.
Thank you for sharing

Follow Us On: