Docs › Setup guides
ERPNext Company & Chart of Accounts Setup Guide
Step-by-step ERPNext accounts setup: company, fiscal year, chart of accounts, default accounts, cost centers, opening balances and locking closed periods.
Accounts are the base of every ERPNext setup. Sales, purchases, stock and payroll all post into the ledgers you create here, so a clean start saves months of corrections later. This ERPNext accounts setup guide walks you through the company, fiscal year, chart of accounts, default accounts, cost centers, opening balances and period locking, in the order we follow on real projects.
Menu paths below follow the current ERPNext user manual. Workspaces look a little different between v15 and v16. If you cannot find a menu, type the document name (for example Chart of Accounts) in the search bar at the top, called the awesome bar.
Before you start
- Your company's legal name, address, PAN, GSTIN and default currency (INR for most Indian businesses).
- Your fiscal year dates. Most Indian companies use 1 April to 31 March.
- A go-live date (cutover date), usually the first day of a month or quarter.
- A Trial Balance from your old system (Tally, Busy, Excel) as on the day before go-live.
- A list of unpaid customer invoices and unpaid supplier bills as on that date.
- Decide whether you need cost centers (branches, departments or projects). Talk to your accountant first.
Step 1: Create the company
The setup wizard creates your first company. To add or edit one later, search for Company in the awesome bar.
- Fill in Company Name, Abbr (a short code added to every account name; hard to change later), Default Currency and Country.
- Choose a chart of accounts template when asked. You can pick the standard one and edit it, or import your own later.
- Add the company address. For Indian GST this address carries your GSTIN; see the GST setup guide.
- Upload your logo and set a letter head so invoices print correctly.
Step 2: Set up the fiscal year
Go to Accounting › Accounting Masters › Fiscal Year and click Add Fiscal Year.
- Enter a name such as "2026-2027".
- Set the start date and end date (for India, 1 April and 31 March).
- Add the companies that use this year in the companies table.
- Use the Is Short Year option only for a transition period shorter than twelve months.
Also create the previous fiscal year if your opening entries fall in it. A new fiscal year does not close the old one. Closing is a separate step done with a Period Closing Voucher at year end.
Step 3: Review the chart of accounts
Open Accounting › Accounting Masters › Chart of Accounts and select your company. You see a tree of Assets, Liabilities, Equity, Income and Expenses.
- Select the parent group and click Add Child to add a new account.
- Enter the account name, and an account number if you use numbering.
- Tick Is Group only if the account will hold child accounts. Group accounts cannot take ledger entries.
- Set the Account Type when the account has a special job: Bank, Cash, Receivable, Payable, Tax, Stock or Fixed Asset. ERPNext uses this to filter account fields in transactions.
- Add one ledger per bank account under Bank Accounts, and your loans, capital and tax accounts.
Do not create one ledger per customer or supplier. ERPNext tracks party balances inside the single Debtors and Creditors accounts using the Party field. If you have a long list of accounts to load, use the Chart of Accounts Importer before any transactions are made.
Step 4: Set the company default accounts
Open the Company and go to the Accounts tab. Check each default:
| Field | Used for |
|---|---|
| Default Receivable Account | Customer balances from Sales Invoices |
| Default Payable Account | Supplier balances from Purchase Invoices |
| Default Cash Account | Cash receipts and payments |
| Default Bank Account | Bank receipts and payments when no other account is chosen |
| Write Off Account | Small balances written off during payment |
| Exchange Gain/Loss Account | Currency differences on foreign payments |
| Round Off Account and Round Off Cost Center | Small rounding differences |
Also set the default income, expense and cost center fields on the same tab. Wrong defaults are the most common reason for invoices posting to the wrong ledger.
Step 5: Create cost centers
Go to Accounting › Accounting Masters › Cost Center and select your company. ERPNext creates a main cost center for you.
- Select the parent and click Add Child.
- Enter the name (for example a branch or department).
- Tick Is Group only if it will hold child cost centers. Only non-group cost centers are used on transactions.
- Set a default cost center on the Company or on Items so users do not have to choose it every time.
Step 6: Enter opening balances
Each kind of balance has its own tool. Use the right one, and never enter the same balance twice.
| Balance | Tool |
|---|---|
| Unpaid customer and supplier invoices | Opening Invoice Creation Tool |
| Stock quantity and value | Stock Reconciliation with purpose Opening Stock (see the items and stock guide) |
| Fixed assets | Asset records marked as existing assets |
| All other ledgers (bank, cash, loans, capital, taxes) | Journal Entry with Is Opening = Yes |
Opening invoices
- Open Accounting › Opening and Closing › Opening Invoice Creation Tool.
- Select the Company and set Invoice Type to Sales. Do purchase bills as a separate batch with Invoice Type Purchase.
- Leave Create Missing Party unticked if your customers and suppliers are already imported.
- Add one row per unpaid invoice: invoice number, party, original posting date, due date, a generic item name such as "Opening balance", quantity 1 and the outstanding amount including tax.
- Click Create Invoices once. Do not run the same batch twice.
Using the original invoice dates keeps the receivable and payable ageing correct.
Opening Journal Entry
- Create a new Journal Entry, select the company and set the posting date to the day before go-live.
- Set Is Opening to Yes.
- Add one row per remaining ledger balance with either a debit or a credit. Leave out Debtors, Creditors and Stock, which the other tools already posted.
- Note the source (for example "Tally TB as on 31 March") in User Remark.
- Check that total debit equals total credit, then save and submit.
ERPNext balances opening documents against a Temporary Opening account. Once everything is loaded, that account should show zero.
Step 7: Lock closed periods
Once a month is checked and filed, stop anyone from changing it.
- Accounting Period: create a record with a name, start date, end date and company, then add the document types to block in the Closed Documents table. Search for Accounting Period in the awesome bar.
- Accounts Settings: set Accounts Frozen Till Date and choose the Role Allowed to Set Frozen Accounts and Edit Frozen Entries. Only that role can then post before the date. Labels and the tab they sit on can differ by version.
Check your work
- Run Trial Balance as on the cutover date and compare it line by line with your old system's Trial Balance.
- Run Accounts Receivable and Accounts Payable and match the totals to your party lists.
- Open General Ledger filtered on the Temporary Opening account. The balance should be zero.
- Run Balance Sheet to confirm it balances.
Common mistakes
- Creating a separate ledger for every customer and supplier instead of using parties.
- Including Debtors or Creditors in the opening Journal Entry as well as using the Opening Invoice Creation Tool. That doubles the balance.
- Posting opening entries on the go-live date instead of the day before, so they mix with live transactions.
- Ticking Is Group on a ledger that needs entries, or leaving Account Type empty on bank and tax accounts.
- Leaving a difference in Temporary Opening and hiding it in retained earnings.
- Never locking periods, so old months change after GST returns are filed.
Next, set up GST with the GST guide, or read the Accounts module overview.
Sources
Written from the official documentation and source code below. Menus and fields can differ between versions, so check the docs for your version.
