How do I set up a chart of accounts for an e-commerce or retail business?
A store needs an inventory account, a clear cost of goods sold, and separate lines for the things a payout hides: refunds, shipping and platform fees.
Record gross sales, not payouts. A marketplace deposit is sales minus fees, refunds and sometimes tax. Book each part to its own account or your revenue will read low.
Hold stock in Inventory until you sell it. Buying stock moves cash into an asset. You move it to cost of goods sold only when you ship the item.
Keep refunds and discounts visible. A rising refund line is an early warning that net sales alone would hide.
Treat shipping and merchant fees as cost of sales. They rise with every order, so they belong above gross profit.
Keep Sales Tax Payable as a liability. You collect sales tax for the state, so it was never your income.
The template.
33 accounts to start from. The core list is the same for every business. This template adds Inventory, Product Sales, Shipping Income, Refunds and Discounts, Cost of Goods Sold, Shipping and Fulfillment, Merchant and Marketplace Fees. Rename, add or remove lines to fit.
How the numbers are laid out.
Numbers
Kind
1000 to 1999
AssetsThings the business owns: cash, receivables, inventory, equipment.
2000 to 2999
LiabilitiesDebts it owes: bills, credit cards, taxes collected, loans.
3000 to 3999
EquityThe owner’s stake: money put in, money taken out, profit kept.
4000 to 4999
IncomeMoney it earns from customers.
5000 to 5999
Cost of goods soldCosts of delivering each sale.
6000 to 7999
ExpensesCosts of staying open.
8000 to 8999
Other income and expenseItems outside normal operations, such as interest earned.
The numbers are a convention, not a rule. For how a chart works and how to keep it small, read the chart of accounts guide.
PDF. The full list, with number, account and type.
CSV. The same list as plain rows.
QBO. The list with the headers QuickBooks Online expects: Account Number, Account Name, Type and Detail Type. The detail type is filled in for you.
Your entries stay in this browser. Nothing is sent to BUILD+BOOKS, and no email is needed. Clear removes them. Each PDF is stamped with the date and the page it came from. QBO files are CSVs in the column layout QuickBooks Online imports. BUILD+BOOKS is not affiliated with Intuit.
For agents.
open /tools/chart-of-accounts/ecommerce?business=Northside+Cafe, or GET /tools/chart-of-accounts/ecommerce.csv for the plain template
fields business, industry
lists accounts[number, name, type]
storage localStorage["bpb:coa-ecommerce:v1"], as JSON
math /tools/tools.mjs, tools.coa.compute(state)
Own your numbers.
This calculator keeps your entries only in this browser. BUILD+BOOKS is a free, open source ledger that your AI agent keeps for you, in an account you own. Next time, your agent can pull these figures straight from your books.
Paste this into your AI agent.
Clone BUILD+BOOKS from https://github.com/build-plus/buildplusbooks and read its README. Follow the deployment instructions to deploy it to my Cloudflare account. Set up the Books with the details you already know about my business, and ask me only for details you cannot work out. Show me the Worker URL and the MCP endpoint when you finish.