Journal Entry Builder
Pick an everyday transaction, enter your own amounts and rates, and get a balanced journal entry with a plain-English reason for every debit and credit, or type your own entry and check that it balances.
Built by Deepak Middha, CA · Awaiting his review · Methodology v1.0 · Tested against independently calculated examples
1 · Journal entry builder
Transaction
You invoice a customer who will pay later, adding sales tax, VAT or GST at your rate.
Your rate. Enter 0 if the sale is exempt or outside the tax.
Rates and withholdings are your inputs: no country's rates are built in.
The entry
Balanced ✓STEP 1 · INVOICE DATE
| Account | Debit | Credit |
|---|---|---|
| Accounts receivable | 1,100.00 | |
| Sales revenue | 1,000.00 | |
| Sales tax / VAT payable | 100.00 | |
| Total | 1,100.00 | 1,100.00 |
2 · KEY TAKEAWAYS FROM YOUR NUMBERS
- Credit sale with sales tax / VAT: 1 entry with 3 lines. Debits and credits each total $1,100.00, so every entry balances.
- Only $1,000.00 is revenue. The $100.00 of tax is owed to the tax authority, so it sits in a liability until you file and pay the return.
- Combined effect on the accounting equation: Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00.
- Income and expense lines change equity through profit; balance sheet-only lines move value between assets, liabilities and equity without touching profit.
3 · RESULTS
Invoice total
$1,100.00
Revenue
$1,000.00
Tax payable
$100.00
Effect on the accounting equation
Assets = liabilities + equity. Income raises equity and expenses lower it, through profit. Every entry shown, counted once.
+$1,100.00
+$100.00
+$1,000.00
Check passed: Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00. Debits $1,100.00 = credits $1,100.00.
Bars to the right are increases; faded bars from the right are decreases. Lengths are relative to the largest change.
4 · ENTRY LINES
Every line, with the reason for it
| STEP | ACCOUNT | TYPE | DEBIT | CREDIT | WHY |
|---|---|---|---|---|---|
| 1. Invoice date | Accounts receivable | Asset | 1,100.00 | The customer now owes you the full invoice, tax included: an asset until they pay. | |
| Sales revenue | Income | 1,000.00 | Revenue is the price excluding tax. It increases profit, and so equity. | ||
| Sales tax / VAT payable | Liability | 100.00 | Tax you collected on the government's behalf is a liability, not your income. | ||
| Total (3 lines) | 1,100.00 | 1,100.00 | Balanced | ||
The copied text is tab-separated, so it pastes into Excel or Google Sheets as columns: step, when, account, type, debit, credit and explanation, with a total row.
5 · ASSUMPTIONS
- Tax is calculated on the price excluding tax at the rate you entered and rounded to the cent; the invoice total is price + tax, so the entry balances exactly.
- Cost of sales for goods is a separate entry (see the inventory template).
- Amounts are rounded to the currency's minor unit; every balancing figure is the exact difference of rounded amounts, so debits equal credits to the cent.
- Account names are typical examples. Use the names in your own chart of accounts.
- Currency changes only the symbol shown; nothing is converted.
Your contracts, your local tax rules and the accounting framework you report under decide the real treatment. Where they differ from these templates, follow them.
6 · FORMULA USED
Σ Debits = Σ Credits
Δ Assets = Δ Liabilities + Δ Equity (equity includes income − expenses)
How it works, in plain English: each template turns your amounts into lines in cents, rounds products such as price × tax rate to the cent, and makes every balancing figure the exact difference, so debits always equal credits. Each line's account type then shows how assets, liabilities and equity move.
With your numbers:
- Tax = price excluding tax × rate = $1,000.00 × 10% = $100.00 (rounded to the cent)
- Invoice total = $1,000.00 + $100.00 = $1,100.00
- Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00
7 · JOURNAL ENTRIES
Credit sale with sales tax / VAT
Each dated step is its own entry, with its effect on the accounting equation. Illustrative entries: account names depend on the entity and its chart of accounts.
Step 1: Record the credit sale
Invoice date
| Account | Debit | Credit |
|---|---|---|
| Accounts receivable | 1,100.00 | |
| Sales revenue | 1,000.00 | |
| Sales tax / VAT payable | 100.00 | |
| Total | 1,100.00 | 1,100.00 |
Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00.
8 · WORKED EXAMPLE, USING YOUR INPUTS
Credit sale with sales tax / VAT: You invoice a customer who will pay later, adding sales tax, VAT or GST at your rate.
- Step 1, invoice date: debit Accounts receivable $1,100.00 (the customer now owes you the full invoice, tax included: an asset until they pay); credit Sales revenue $1,000.00 (revenue is the price excluding tax. It increases profit, and so equity); credit Sales tax / VAT payable $100.00 (tax you collected on the government's behalf is a liability, not your income). Debits $1,100.00 = credits $1,100.00. Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00.
Two more fully worked examples
At the example inputs, in US dollars. Open one to see every step.
Loan: $100,000.00 at 6%, $26,000.00 instalment after 12 months
- Step 1, drawdown date: debit Cash $100,000.00 (the bank pays the loan into your account); credit Loan payable $100,000.00 (you must repay it: a liability). Debits $100,000.00 = credits $100,000.00. Assets +$100,000.00 = liabilities +$100,000.00 + equity $0.00.
- Step 2, instalment date: debit Interest expense $6,000.00 (the cost of borrowing for the period is an expense); debit Loan payable $20,000.00 (the rest of the instalment repays principal and reduces the loan); credit Cash $26,000.00 (cash paid to the lender). Debits $26,000.00 = credits $26,000.00. Assets −$26,000.00 = liabilities −$20,000.00 + equity −$6,000.00.
Result: Only $6,000.00 of the $26,000.00 instalment is an expense. The other $20,000.00 just reduces the loan: it is not a cost.
Foreign currency sale: 10,000 invoiced at 1.1, 1.12 at period-end, settled at 1.08
- Step 1, invoice date: debit Accounts receivable (foreign currency) $11,000.00 (the receivable is translated at the spot rate on the invoice date); credit Sales revenue $11,000.00 (revenue is fixed at the invoice-date rate and is not remeasured later). Debits $11,000.00 = credits $11,000.00. Assets +$11,000.00 = liabilities $0.00 + equity +$11,000.00.
- Step 2, period-end: debit Accounts receivable (foreign currency) $200.00 (the foreign currency you are owed is now worth more in your currency); credit Foreign exchange gain $200.00 (an unrealised exchange difference on a monetary item goes to profit or loss). Debits $200.00 = credits $200.00. Assets +$200.00 = liabilities $0.00 + equity +$200.00.
- Step 3, settlement date: debit Cash $10,800.00 (the foreign currency received, translated at the settlement-date rate); credit Accounts receivable (foreign currency) $11,200.00 (the receivable is cleared at its carrying amount); debit Foreign exchange loss $400.00 (the realised exchange difference on settlement goes to profit or loss). Debits $11,200.00 = credits $11,200.00. Assets −$400.00 = liabilities $0.00 + equity −$400.00.
Result: Revenue stays at $11,000.00; only the receivable moves with the rate, so the $200.00 loss is reported separately in profit or loss.
All 15 templates side by side, at the example inputs
| Template | Entries | Total debits | Δ Assets | Δ Liabilities | Δ Equity | Profit affected? |
|---|---|---|---|---|---|---|
| Credit sale with sales tax / VAT | 1 | $1,100.00 | +$1,100.00 | +$100.00 | +$1,000.00 | Yes |
| Cash sale | 1 | $275.00 | +$275.00 | +$25.00 | +$250.00 | Yes |
| Credit purchase with input tax | 1 | $880.00 | +$80.00 | +$880.00 | −$800.00 | Yes |
| Payroll with withholdings | 3 | $21,600.00 | −$10,800.00 | $0.00 | −$10,800.00 | Yes |
| Prepaid expense and monthly release | 2 | $13,000.00 | −$1,000.00 | $0.00 | −$1,000.00 | Yes |
| Accrued expense and reversal | 3 | $9,200.00 | $0.00 | +$3,200.00 | −$3,200.00 | Yes |
| Depreciation (straight-line) | 1 | $9,000.00 | −$9,000.00 | $0.00 | −$9,000.00 | Yes |
| Loan drawdown and repayment | 2 | $126,000.00 | +$74,000.00 | +$80,000.00 | −$6,000.00 | Yes |
| Customer receipt with early-payment discount | 2 | $10,000.00 | +$4,900.00 | $0.00 | +$4,900.00 | Yes |
| Bad debt: write-off vs allowance | 2 | $2,700.00 | −$1,500.00 | $0.00 | −$1,500.00 | Yes |
| Inventory purchase and sale (perpetual) | 3 | $10,300.00 | +$5,500.00 | +$4,000.00 | +$1,500.00 | Yes |
| Dividend declared and paid | 2 | $60,000.00 | −$30,000.00 | $0.00 | −$30,000.00 | No |
| Share issue for cash | 2 | $51,500.00 | +$48,500.00 | $0.00 | +$48,500.00 | No |
| Foreign currency invoice (FX gain or loss) | 2 | $22,000.00 | +$10,800.00 | $0.00 | +$10,800.00 | Yes |
| Customer deposit and revenue earned | 2 | $30,000.00 | +$24,000.00 | +$18,000.00 | +$6,000.00 | Yes |
Δ columns add up every step in the template once (for example, a prepaid expense shows the payment and one month's release). In every row, Δ assets = Δ liabilities + Δ equity.
9 · COMMON MISTAKES, PRICED WITH YOUR NUMBERS
Booking the tax as revenue
Crediting revenue with the full $1,100.00 overstates revenue and profit by $100.00 and understates the tax liability by the same amount.
Posting to the wrong period
An expense belongs in the period the goods or services are received, and revenue in the period it is earned, whatever the invoice or payment date. Accruals, prepayments and deferred revenue exist to fix the timing.
Reversing debit and credit
Debits increase assets and expenses; credits increase liabilities, equity and income. A reversed entry still balances, so a trial balance will not catch it: check each line against the accounting equation.
Netting lines that should be gross
Posting a sale net of tax, or wages net of withholdings, hides a liability. Keep revenue, tax, gross pay and each withholding on their own lines.
Using profit-and-loss accounts for balance sheet items
Loan repayments, dividends, share issues and purchases of fixed assets are not expenses or income. Only interest, depreciation and similar items pass through profit.
10 · STANDARDS COMPARISON
Where US GAAP, IFRS, Ind AS and UK GAAP change the entry
| Topic | US GAAP | IFRS | Ind AS | UK GAAP (FRS 102) |
|---|---|---|---|---|
| Allowance for credit losses on receivables | ASC 326 current expected credit loss (CECL) model: an allowance for expected losses over the life of the receivable from initial recognition. | IFRS 9 expected credit loss model. For trade receivables without a significant financing component, the simplified approach measures lifetime expected losses. | Ind AS 109, which follows IFRS 9's expected credit loss model. | Section 11 uses an incurred-loss model: impairment is recognised when there is objective evidence of it. An entity may instead choose IFRS 9 recognition and measurement as an accounting policy. |
| Early-payment (settlement) discounts | ASC 606 variable consideration: estimate the discount and include revenue only to the extent a significant reversal is probable not to occur. | IFRS 15 variable consideration, with a 'highly probable' constraint. The discount reduces revenue, not a finance or selling expense. | Ind AS 115, based on IFRS 15. | Section 23 was revised to a five-step model based on IFRS 15 for periods beginning on or after 1 January 2026. Earlier editions measured revenue net of trade discounts, prompt settlement discounts and volume rebates. |
| Share issue: capital, premium and issue costs | Par value to common stock and the excess to additional paid-in capital; no-par stock is allowed in some states. Direct issue costs are generally deducted from the proceeds in equity. | IAS 32: transaction costs of an equity transaction are deducted from equity. IFRS does not name the equity accounts; company law does. | Ind AS 32 as IFRS. Indian company law requires a securities premium account, presented within other equity. | Section 22 deducts the costs of issuing equity from equity. UK company law requires a nominal value and a share premium account. |
| Foreign currency invoices | ASC 830: transaction gains and losses on receivables and payables in a foreign currency go to net income. | IAS 21: exchange differences on settling or retranslating monetary items go to profit or loss, with limited exceptions such as a net investment in a foreign operation. | Ind AS 21, the same principle as IAS 21. | Section 30, the same principle: exchange differences on monetary items go to profit or loss, with limited exceptions. |
| Inventory cost formula | LIFO is permitted, as well as FIFO and weighted average. | IAS 2 does not permit LIFO. | Ind AS 2 does not permit LIFO. | Section 13 does not permit LIFO. |
| Depreciation of significant parts | Component depreciation is permitted but not required. | IAS 16 requires each significant part to be depreciated separately. | Ind AS 16, as IAS 16. | Section 17 requires major components with significantly different patterns of consumption to be depreciated separately. |
A summary for learning, not a quotation. Perpetual vs periodic inventory, accrual reversals and payroll withholdings are bookkeeping and local-law questions, not framework differences: all four frameworks give the same entries for those templates. Tax rates and withholdings come from your local tax rules.
11 · INTERVIEW QUESTION
“The company paid a $26,000.00 loan instalment and the junior accountant debited it all to interest expense. What is wrong, and what should the entry be?”
Split the instalment. With a $100,000.00 loan at 6% and a $26,000.00 annual instalment, interest for the year is $6,000.00: debit interest expense $6,000.00, debit loan payable $20,000.00, credit cash $26,000.00. Only the interest is a cost; the principal part settles a liability. Then check the equation: assets fall by the cash paid, liabilities by the principal repaid and equity by the interest expense, so it still balances.
100 interview questions with model answers in the handbook.
12 · FAQ: JOURNAL ENTRY QUESTIONS
How do you write a journal entry step by step?
Identify the accounts the transaction changes, decide whether each one goes up or down, then apply the rules: debits increase assets and expenses, credits increase liabilities, equity and income. Write the debits first, the credits indented below, and check that the two totals are equal. Finally, confirm the accounting equation still holds: the change in assets equals the change in liabilities plus equity.
What is the journal entry for a credit sale with sales tax?
Debit accounts receivable for the full invoice, credit sales revenue for the price excluding tax, and credit sales tax payable for the tax. A $1,000.00 sale at 10% is debit $1,100.00, credit revenue $1,000.00 and credit tax payable $100.00. The tax is a liability because you collect it on the government's behalf; it is never revenue.
How do you record a payroll journal entry with withholdings?
Debit wages expense for gross pay, credit a payable for each amount withheld and credit net wages payable for take-home pay. Employer contributions are a second expense with their own payable. With $10,000.00 gross, $1,500.00 tax and $500.00 other deductions, net pay is $8,000.00, and total employment cost including the employer's $800.00 is $10,800.00.
What is the journal entry for a loan repayment with interest?
Split the instalment. The interest part is an expense; the rest repays principal and reduces the loan liability. On a $100,000.00 loan at 6%, a $26,000.00 annual instalment is debit interest expense $6,000.00, debit loan payable $20,000.00 and credit cash $26,000.00. Expensing the whole instalment would overstate costs and the loan balance.
How do you record a foreign exchange gain or loss on an invoice?
Record the invoice at the rate on its date and leave revenue there. When the receivable is settled, or retranslated at period-end, the change in its value goes to a separate FX gain or loss. A 10,000 foreign-currency sale booked at 1.1 and settled at 1.08 gives revenue of $11,000.00 and an exchange loss of $200.00.
What is the difference between the direct write-off and allowance methods?
The direct method expenses a bad debt only when you give up on it, often periods after the sale. The allowance method estimates expected credit losses at each reporting date, debiting an expense and crediting an allowance; the later write-off just uses the allowance. IFRS 9 and US GAAP's CECL model require an expected-loss allowance, so direct write-off is mainly a tax or very small-business practice.
Why are accrued expenses reversed at the start of the next period?
Reversing the month-end accrual on day one lets the accounts payable team book the supplier invoice in full, as usual, without hunting for the old accrual. The reversal and the invoice net to the difference between estimate and actual, which lands in the new period. Clearing the accrual directly against the invoice gives exactly the same result; reversal is just easier to run at volume.
Is a dividend an expense in the income statement?
No. A dividend is a distribution of profit to shareholders, so it is debited to retained earnings, not to an expense. It becomes a liability when it is declared or approved under company law and the entity's constitution, and the payable is cleared when cash is paid. Profit is unaffected; equity and cash both fall by the dividend.
SOURCES, METHODOLOGY AND REVIEW
- Methodology version
- 1.0
- First published
- December 2, 2026
- Last substantive update
- December 2, 2026
- Human review
- Awaiting review by Deepak Middha, CA. Until then, treat results as unreviewed.
- Automated testing
- The calculation engine is tested against independently calculated values. Automated tests are not a professional review or certification.
- Scope
- Fifteen everyday transaction templates and a free-form balance check, rounded to the cent, with illustrative account names. No tax-rate lookup, multi-currency ledgers, hedge accounting or effective-interest amortisation.
Primary sources
- IFRS 15 Revenue from Contracts with Customers (IFRS Foundation / IASB): The five-step revenue model and estimating variable consideration, which covers settlement discounts and customer deposits.
- IFRS 9 Financial Instruments (IFRS Foundation / IASB): Impairment requirements based on expected credit losses (the allowance method for receivables).
- IAS 21 The Effects of Changes in Foreign Exchange Rates (IFRS Foundation / IASB): Accounting for foreign currency transactions and reporting the effects of changes in exchange rates (the FX invoice template).
- IAS 2 Inventories (IFRS Foundation / IASB): Inventory carried at cost and expensed in the period the related revenue is recognised (the perpetual inventory template).
- IAS 16 Property, Plant and Equipment (IFRS Foundation / IASB): Principles for measuring depreciation charges on property, plant and equipment.
- IAS 32 Financial Instruments: Presentation (IFRS Foundation / IASB): Whether an instrument is equity or a liability, and the costs of an equity transaction (the share issue template).
- FRS 102 The Financial Reporting Standard applicable in the UK and Republic of Ireland (Financial Reporting Council (FRC)): UK GAAP framework; the current edition has a principal effective date of 1 January 2026.
- FASB Accounting Standards Codification (Topics 326, 606 and 830) (Financial Accounting Standards Board (FASB)): US GAAP on credit losses (CECL), revenue from contracts with customers and foreign currency matters. The Codification site requires a login and blocks automated checks; topics are cited by name, not by paragraph.
Statements about standards and regulation are summaries for learning, not quotations. The contracts and governing documents involved, and the accounting framework that actually applies, decide the real treatment. Found an error? Message Deepak Middha on LinkedIn; see the corrections policy.