Skip to content
gaaptool.comTry a calculator

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

AccountDebitCredit
Accounts receivable1,100.00
Sales revenue1,000.00
Sales tax / VAT payable100.00
Total1,100.001,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.

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.

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.

Every line, with the reason for it

STEPACCOUNTTYPEDEBITCREDITWHY
1. Invoice dateAccounts receivableAsset1,100.00The customer now owes you the full invoice, tax included: an asset until they pay.
Sales revenueIncome1,000.00Revenue is the price excluding tax. It increases profit, and so equity.
Sales tax / VAT payableLiability100.00Tax you collected on the government's behalf is a liability, not your income.
Total (3 lines)1,100.001,100.00Balanced

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.

  • 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.

Σ 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:

  1. Tax = price excluding tax × rate = $1,000.00 × 10% = $100.00 (rounded to the cent)
  2. Invoice total = $1,000.00 + $100.00 = $1,100.00
  3. Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00

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

AccountDebitCredit
Accounts receivable1,100.00
Sales revenue1,000.00
Sales tax / VAT payable100.00
Total1,100.001,100.00

Assets +$1,100.00 = liabilities +$100.00 + equity +$1,000.00.

Credit sale with sales tax / VAT: You invoice a customer who will pay later, adding sales tax, VAT or GST at your rate.

  1. 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
  1. 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.
  2. 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
  1. 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.
  2. 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.
  3. 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

TemplateEntriesTotal debitsΔ AssetsΔ LiabilitiesΔ EquityProfit affected?
Credit sale with sales tax / VAT1$1,100.00+$1,100.00+$100.00+$1,000.00Yes
Cash sale1$275.00+$275.00+$25.00+$250.00Yes
Credit purchase with input tax1$880.00+$80.00+$880.00−$800.00Yes
Payroll with withholdings3$21,600.00−$10,800.00$0.00−$10,800.00Yes
Prepaid expense and monthly release2$13,000.00−$1,000.00$0.00−$1,000.00Yes
Accrued expense and reversal3$9,200.00$0.00+$3,200.00−$3,200.00Yes
Depreciation (straight-line)1$9,000.00−$9,000.00$0.00−$9,000.00Yes
Loan drawdown and repayment2$126,000.00+$74,000.00+$80,000.00−$6,000.00Yes
Customer receipt with early-payment discount2$10,000.00+$4,900.00$0.00+$4,900.00Yes
Bad debt: write-off vs allowance2$2,700.00−$1,500.00$0.00−$1,500.00Yes
Inventory purchase and sale (perpetual)3$10,300.00+$5,500.00+$4,000.00+$1,500.00Yes
Dividend declared and paid2$60,000.00−$30,000.00$0.00−$30,000.00No
Share issue for cash2$51,500.00+$48,500.00$0.00+$48,500.00No
Foreign currency invoice (FX gain or loss)2$22,000.00+$10,800.00$0.00+$10,800.00Yes
Customer deposit and revenue earned2$30,000.00+$24,000.00+$18,000.00+$6,000.00Yes

Δ 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.

Where US GAAP, IFRS, Ind AS and UK GAAP change the entry

Journal entry treatment by framework
TopicUS GAAPIFRSInd ASUK GAAP (FRS 102)
Allowance for credit losses on receivablesASC 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) discountsASC 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 costsPar 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 invoicesASC 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 formulaLIFO 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 partsComponent 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.

“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?”

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.

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

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.