---
title: "Journal entry examples: debits and credits, worked"
description: "42 worked journal entries — prepaids, accruals, revenue, depreciation, leases, payroll and loans — each computed and proved to balance."
canonical: "https://lopifi.com/journal-entries"
---

# Journal entry examples: debits and credits, worked

> 42 worked journal entries — prepaids, accruals, revenue, depreciation, leases, payroll and loans — each computed and proved to balance.

Source: https://lopifi.com/journal-entries
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

Each page books one transaction, then the entries that follow until the balance is gone, and shows what they do to every account. The figures come from the same tested functions as the [accounting tools](https://lopifi.com/tools), and every entry is proved to balance before the page is built.

## Prepaids and deferrals

Cash paid before the cost is used, or received before revenue is earned.

- [Prepaid insurance](https://lopifi.com/md/journal-entries/prepaid-insurance): When the premium is paid, debit Prepaid insurance and credit Cash. At each month-end, debit Insurance expense and credit Prepaid insurance for the month's share of the policy, until the prepaid balance reaches zero.
- [Prepaid rent](https://lopifi.com/md/journal-entries/prepaid-rent): When rent is paid in advance, debit Prepaid rent and credit Cash. At each month-end, debit Rent expense and credit Prepaid rent for the month the space was used.
- [Prepaid software subscription](https://lopifi.com/md/journal-entries/prepaid-software-subscription): When an annual software subscription is paid up front, debit Prepaid software and credit Cash (or Accounts payable). Each month-end, debit Software expense and credit Prepaid software for the days of service used that month.

## Accruals

Costs and income that belong to a month before any document arrives.

- [Accrued expenses](https://lopifi.com/md/journal-entries/accrued-expenses): At month-end, debit the expense and credit Accrued expenses for work received but not yet billed. Reverse the accrual on the first day of the next month, then book the vendor's bill as usual when it arrives.
- [Accrued wages](https://lopifi.com/md/journal-entries/accrued-wages): At month-end, debit Wages and salaries and credit Accrued wages for the days worked since the last payday. On payday, reverse the accrual or debit Accrued wages for the part of the payroll it covers.
- [Accrued interest](https://lopifi.com/md/journal-entries/accrued-interest): At month-end, debit Interest expense and credit Accrued interest for the interest earned by the lender since the last payment. When the payment is made, debit Accrued interest and credit Cash.

## Revenue and receivables

Sales, collections, refunds, processors and credit losses.

- [Deferred revenue](https://lopifi.com/md/journal-entries/deferred-revenue): When an annual contract is invoiced up front, debit Accounts receivable and credit Deferred revenue. As each month of service is delivered, debit Deferred revenue and credit Revenue for that month's share.
- [Customer deposit](https://lopifi.com/md/journal-entries/customer-deposit): When a customer pays a deposit, debit Cash and credit Customer deposits. On delivery, debit Customer deposits for the deposit, debit Accounts receivable for the balance, and credit Revenue for the full price.
- [Bundled contract (ASC 606)](https://lopifi.com/md/journal-entries/bundled-contract-asc-606): For a contract with several promises, debit Accounts receivable and credit Deferred revenue for the price when billed, allocate the price to each performance obligation by relative standalone selling price, and credit Revenue for each part as that promise is satisfied.
- [Accrued revenue](https://lopifi.com/md/journal-entries/accrued-revenue): At month-end, debit Unbilled receivables and credit Revenue for work delivered but not yet invoiced. When the invoice goes out, debit Accounts receivable and credit Unbilled receivables.
- [Sale on account](https://lopifi.com/md/journal-entries/sale-on-account): For a sale on credit, debit Accounts receivable and credit Revenue for the price; under a perpetual inventory system also debit Cost of goods sold and credit Inventory for what the goods cost. When the customer pays, debit Cash and credit Accounts receivable.
- [Sales tax collected](https://lopifi.com/md/journal-entries/sales-tax-collected): When a taxable sale is made, debit Cash or Accounts receivable for the total charged, credit Revenue for the price and credit Sales tax payable for the tax. When the return is filed, debit Sales tax payable and credit Cash.
- [Stripe payout](https://lopifi.com/md/journal-entries/stripe-payout): Book charges gross: debit Stripe clearing and credit Revenue for every charge, and debit Sales returns and allowances and credit Stripe clearing for refunds. When the payout lands, debit Cash for the payout and Merchant fees for the fees, and credit Stripe clearing, which should then be zero.
- [Customer refund](https://lopifi.com/md/journal-entries/customer-refund): To refund a paid invoice, issue a credit note (debit Sales returns and allowances, credit Accounts receivable), then pay the refund (debit Accounts receivable, credit Cash).
- [Bad debt expense](https://lopifi.com/md/journal-entries/bad-debt-expense): Under the allowance method, at each period-end debit Credit loss expense (bad debt expense) and credit Allowance for credit losses for the amount needed to bring the allowance to the expected loss on open receivables.
- [Write-off of accounts receivable](https://lopifi.com/md/journal-entries/write-off-accounts-receivable): To write off an uncollectible invoice under the allowance method, debit Allowance for credit losses and credit Accounts receivable. If the customer later pays, reinstate the receivable (debit Accounts receivable, credit Allowance) and record the cash.
- [Capitalized sales commissions](https://lopifi.com/md/journal-entries/capitalized-commissions): When a sales commission is paid for a contract that will last longer than a year, debit Capitalized contract costs and credit Cash or Accrued expenses instead of expensing it. Each month after, debit Sales commission expense and credit Capitalized contract costs for the straight-line share over the period the customer is expected to stay.
- [Refund liability for expected returns](https://lopifi.com/md/journal-entries/refund-liability): When the company expects customers to return goods or ask for refunds, debit Sales returns and allowances (a contra-revenue account) and credit Refund liability for the expected amount at the time of sale. When a refund is actually paid, debit Refund liability and credit Cash, so revenue is not hit a second time.
- [Short payment](https://lopifi.com/md/journal-entries/short-payment): Debit Cash for what arrived and credit Accounts receivable for the same amount. If the deduction is agreed, issue a credit note: debit Sales returns and allowances, credit Accounts receivable. If it is not, leave the difference open on the invoice, marked disputed.
- [Unapplied cash](https://lopifi.com/md/journal-entries/unapplied-cash): Debit Cash and credit Accounts receivable for the customer, unapplied, on the day the money arrives. When the invoices it pays are identified, apply it to them; the entry is already made, so only the subledger changes. Never credit revenue.

## Payables and spend

Bills, card spend, inventory and the discounts for paying early.

- [Accounts payable](https://lopifi.com/md/journal-entries/accounts-payable): When an approved vendor bill is entered, debit the expense or asset it bought and credit Accounts payable. When it is paid, debit Accounts payable and credit Cash.
- [Inventory purchase](https://lopifi.com/md/journal-entries/inventory-purchase): When inventory is bought on credit under a perpetual system, debit Inventory and credit Accounts payable. If an early-payment discount is taken, debit Accounts payable for the full bill, credit Cash for what is paid and credit Inventory for the discount.
- [Credit card expenses](https://lopifi.com/md/journal-entries/credit-card-expenses): For each company card charge, debit the expense it paid for and credit Credit card payable. When the statement is paid, debit Credit card payable and credit Cash.
- [Inventory write-down](https://lopifi.com/md/journal-entries/inventory-write-down): When inventory's net realizable value falls below its cost, debit an inventory write-down expense (often within cost of goods sold) and credit Inventory for the difference.

## Fixed assets and leases

Capitalizing, depreciating and disposing of assets, and leases under ASC 842.

- [Equipment purchase](https://lopifi.com/md/journal-entries/equipment-purchase): When equipment is bought, debit the fixed asset account for its full cost (price plus delivery and installation) and credit Cash or Accounts payable. Nothing is expensed on the day of purchase; the cost reaches the P&L as depreciation.
- [Depreciation](https://lopifi.com/md/journal-entries/depreciation): Each period, debit Depreciation expense and credit Accumulated depreciation for the period's charge. The asset account keeps its original cost; accumulated depreciation, a contra-asset, grows until net book value reaches salvage value.
- [Asset disposal](https://lopifi.com/md/journal-entries/asset-disposal): When a fixed asset is sold, debit Cash for the proceeds and Accumulated depreciation for its balance, credit the asset for its original cost, and book the difference as a gain (credit) or a loss (debit) on sale.
- [Capitalized software](https://lopifi.com/md/journal-entries/capitalized-software): Capitalize qualifying development cost by debiting Capitalized software and crediting the expense it was first booked to (usually wages). Once the software is ready for use, debit Amortization expense and credit Accumulated amortization each month over its useful life.
- [Operating lease (ASC 842)](https://lopifi.com/md/journal-entries/operating-lease): For an operating lease, at commencement debit Right-of-use asset and credit Lease liability for the present value of the payments. Each payment debits Lease liability and credits Cash; each month-end debits Operating lease cost for the straight-line cost and credits Lease liability for the interest and the right-of-use asset for the rest.
- [Finance lease (ASC 842)](https://lopifi.com/md/journal-entries/finance-lease): For a finance lease, at commencement debit Right-of-use asset and credit Lease liability for the present value of the payments. Each payment debits Lease liability and credits Cash; each month-end debits Interest expense and credits Lease liability for the interest, and debits Amortization expense and credits the right-of-use asset for straight-line amortization.

## Payroll and compensation

Wages, withholding, employer taxes and equity pay.

- [Payroll](https://lopifi.com/md/journal-entries/payroll): On payday, debit Wages and salaries for gross pay, credit Cash for net pay and credit liabilities for everything withheld. Book the employer's own taxes separately (debit Payroll tax expense, credit Payroll taxes payable), and clear both payables when they are remitted.
- [Stock-based compensation](https://lopifi.com/md/journal-entries/stock-based-compensation): Each month of the service period, debit Stock-based compensation expense and credit Additional paid-in capital for the grant-date fair value of the awards divided over the vesting period. No cash moves and no liability is created for equity-classified awards.

## Financing and equity

Loans, shares, dividends and owners' money.

- [Loan repayment](https://lopifi.com/md/journal-entries/loan-repayment): When the loan is received, debit Cash and credit Loan payable. Each payment debits Interest expense for the interest portion and Loan payable for the principal portion, and credits Cash for the full payment.
- [Issuing common stock](https://lopifi.com/md/journal-entries/issuing-common-stock): When shares are issued for cash, debit Cash for the proceeds, credit Common stock for the par value of the shares, and credit Additional paid-in capital for everything above par.
- [Dividends](https://lopifi.com/md/journal-entries/dividends): When dividends are declared, debit Dividends declared (or Retained earnings) and credit Dividends payable. When paid, debit Dividends payable and credit Cash. At year-end, close Dividends declared to Retained earnings.
- [Owner's draw](https://lopifi.com/md/journal-entries/owners-draw): For a sole proprietorship or partnership, debit Owner's drawings and credit Cash when the owner takes money out. At year-end, close drawings to capital: debit Owner's capital, credit Owner's drawings. A contribution is the reverse: debit Cash, credit Owner's capital.
- [Convertible note](https://lopifi.com/md/journal-entries/convertible-note): When a convertible note is issued, debit Cash and credit Convertible notes payable for the principal. At each period-end, debit Interest expense and credit Accrued interest for the interest earned so far. The note is debt until it converts or is repaid.

## Income tax

Current and deferred income tax under ASC 740.

- [Income tax provision](https://lopifi.com/md/journal-entries/income-tax-provision): At period-end, debit Income tax expense for the total provision, credit Income taxes payable for current tax, and credit (or debit) the Deferred tax asset for the change in deferred tax, such as a net operating loss carryforward used this year.
- [R&D payroll tax credit](https://lopifi.com/md/journal-entries/rd-payroll-tax-credit): Each quarter, accrue the employer's Social Security and Medicare as usual: debit Payroll tax expense, credit Payroll taxes payable. When Form 8974 applies the research payroll credit on that quarter's Form 941, debit Payroll taxes payable and credit Payroll tax expense for the credit used; pay only the rest in cash. Presenting it as other income, or as an income tax benefit, are policy alternatives.

## Foreign currency

Foreign-currency receivables, realized and remeasured.

- [Realized FX gain or loss](https://lopifi.com/md/journal-entries/realized-fx-gain-loss): Book a foreign-currency invoice at the rate on the invoice date. When it is collected at a different rate, debit Cash for the dollars received, credit Accounts receivable for the dollars originally booked, and book the difference as a realized foreign exchange gain or loss.
- [Unrealized FX revaluation](https://lopifi.com/md/journal-entries/unrealized-fx-revaluation): At each month-end, remeasure open foreign-currency receivables and payables at the closing rate: debit the receivable and credit Foreign exchange gain when the dollar value has risen, or the reverse for a loss. The gain is unrealized until the item settles.

## The close

Taking the year's result to retained earnings.

- [Closing entries](https://lopifi.com/md/journal-entries/closing-entries): At the end of the fiscal year, debit every revenue account for its credit balance, credit every expense account for its debit balance, and take the difference, net income, to Retained earnings. Revenue and expense accounts start the new year at zero.
