---
title: "Journal entry for a sale on account"
description: "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."
canonical: "https://lopifi.com/journal-entries/sale-on-account"
---

# Journal entry for a 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.

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

---

- **Price:** $7,500
- **Cost of goods:** $4,800
- **Gross margin:** 36%
- **Entity:** Illustrative company
- **Basis:** Accrual
- **Currency:** USD
- **Period:** May – June 2026

## The worked example

On May 8, 2026 a distributor ships $7,500 of goods that cost $4,800 on Net 30 terms, due June 7, 2026. Gross profit is $2,700: a 36% margin, or a 56.3% markup on cost.

### JE-1 · Transaction · May 8, 2026

Ship the goods and invoice the customer.

| Account | Debit | Credit |
| --- | ---: | ---: |
| 1100 Accounts receivable | $7,500.00 |  |
| 4000 Revenue |  | $7,500.00 |
| 5000 Cost of goods sold | $4,800.00 |  |
| 1200 Inventory |  | $4,800.00 |
| Total | $12,300.00 | $12,300.00 |

### JE-2 · Transaction · June 7, 2026

Collect the invoice on its due date.

| Account | Debit | Credit |
| --- | ---: | ---: |
| 1000 Cash | $7,500.00 |  |
| 1100 Accounts receivable |  | $7,500.00 |
| Total | $7,500.00 | $7,500.00 |

## What the entries do to the accounts

Every entry above posted to the ledger, starting from zero balances: the net debit or credit each account is left with. Debits equal credits, so the books still balance.

| Account | Debit | Credit |
| --- | ---: | ---: |
| 1000 Cash | $7,500.00 |  |
| 1200 Inventory |  | $4,800.00 |
| 4000 Revenue |  | $7,500.00 |
| 5000 Cost of goods sold | $4,800.00 |  |
| Totals | $12,300.00 | $12,300.00 |

## Why it is booked this way

A credit sale is two exchanges booked together. The customer receives goods in return for a promise to pay (revenue and a receivable), and the company gives up inventory, which becomes the cost of that revenue.

Booking both halves on the same date keeps gross margin right month by month. Otherwise the cost lands whenever the next stock count happens.

## Common mistakes

- Recording revenue and forgetting the cost-of-goods-sold entry, so gross margin looks like 100% until a stock count.
- Booking the sale when the cash arrives rather than when the goods are delivered.

## Questions

### When is revenue recognized on a credit sale?

When control of the goods passes to the customer, usually on shipment or delivery as the contract's terms say. The invoice date and the payment date don't decide it.

### Where does the margin show up?

Gross margin is the profit as a share of the price; markup is the same profit as a share of the cost. The entry records cost and price; both percentages are computed from them.

## Terms on this page

- [Accounts receivable](https://lopifi.com/md/glossary/accounts-receivable): What customers owe us for invoices already issued
- [Revenue](https://lopifi.com/md/glossary/revenue): Inflows or other enhancements of assets, or settlements of liabilities, from delivering or producing goods, rendering services or carrying out other activities — recognized when control transfers, not when cash arrives
- [Cost of revenue](https://lopifi.com/md/glossary/cost-of-revenue): The direct costs of producing the goods or delivering the services sold in the period — the line gross profit is measured after
- [Gross margin](https://lopifi.com/md/glossary/gross-margin): Gross margin is a profitability metric, calculated as (Revenue − COGS) ÷ Revenue.
- [Payment terms](https://lopifi.com/md/glossary/payment-terms): The agreed timing of payment and any early-payment discount — Net 30, Net 30 EOM, 2/10 net 30, due on receipt; the due date that aging is measured from

## Work with this entry

- [Margin & markup](https://lopifi.com/md/tools/margin): Margin is profit over price; markup is profit over cost. Solve either way.
- [Accounts receivable, explained for founders](https://lopifi.com/md/accounting/accounts-receivable): Money customers owe you for work you've delivered and invoiced but haven't been paid for yet. It's an asset.
- [Debit vs credit](https://lopifi.com/md/differences/debit-vs-credit): Debit means the left side of an account and credit the right. Whether that's an increase depends on the account: debits raise assets and expenses and lower liabilities, equity and revenue, and credits do the reverse.
- [Accounts payable vs accounts receivable](https://lopifi.com/md/differences/accounts-payable-vs-accounts-receivable): Accounts payable is what the company owes its suppliers, and it sits with the liabilities. Accounts receivable is what customers owe the company, and it sits with the assets.
- [Journal vs general ledger](https://lopifi.com/md/differences/journal-vs-general-ledger): The journal records each transaction as a complete entry, in date order. The general ledger regroups the same lines by account so each account shows a running balance.
- [Journal entry for 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.
- [Journal entry for an 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.
- [Journal entry for 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.

*An illustrative company, not anyone’s real books. Every figure on this page is computed from the inputs in the example and posted by the same functions as the [journal entry balancer](https://lopifi.com/md/tools/journal). General information, not tax, legal or accounting advice. Check with a CPA before you act on it.*
