Accounting

How to Record a Sale in Accounting

F
Feather TeamAuthor
Published Date

Learn how to accurately record sales transactions, from simple cash sales to complex credit sales, discounts, and returns, ensuring your financial statements are correct.

How to Record a Sale in Accounting

Recording a sale is the primary way your business documents incoming revenue. Getting it wrong can lead to skewed financial statements, incorrect tax filings, and poor business decisions. This guide will walk you through exactly how to record sales accurately, covering a simple cash transaction and progressing to more complex scenarios like sales on credit, sales tax, and returns.

The Foundation: Debits, Credits, and the Accounting Equation

Before creating a journal entry, it's important to understand the basics of double-entry accounting. Every transaction affects at least two accounts. One account is debited, and another is credited, and the total debits must always equal the total credits.

Here’s how debits and credits affect the core types of accounts:

  • Assets: Things your company owns (like Cash, Accounts Receivable, Inventory). Debits increase assets, and credits decrease them.
  • Liabilities: Things your company owes (like Loans Payable, Sales Tax Payable). Debits decrease liabilities, and credits increase them.
  • Equity: The owner’s stake in the company (like Retained Earnings, Common Stock). Debits decrease equity, and credits increase it.
  • Revenue: Money earned from sales (like Sales Revenue, Service Revenue). Debits decrease revenue, and credits increase revenue. Since revenue increases equity, it follows the same credit rule.
  • Expenses: Costs incurred to generate revenue (like Rent Expense, Cost of Goods Sold). Debits increase expenses, and credits decrease them. Expenses decrease equity, giving them a natural debit balance.

Understanding this framework is the key to creating any journal entry correctly, especially for sales.

How to Record a Simple Cash Sale

This is the most straightforward transaction. A customer pays you in full at the moment of the sale. This is common in retail, e-commerce, and restaurants.

Let's use an example: A bookstore sells a novel for $20 cash.

Here’s the step-by-step process:

  1. Identify the accounts involved: In this case, you received cash, and you made a sale. The accounts are Cash (an asset) and Sales Revenue (a revenue account).
  2. Determine the direction of change: Your Cash balance increased, and your Sales Revenue increased.
  3. Apply the debit/credit rules:
    • An increase to an asset (Cash) is a debit.
    • An increase to a revenue account (Sales Revenue) is a credit.

The resulting journal entry looks like this:

Date

Account

Debit

Credit

YYYY-MM-DD

Cash

$20

     Sales Revenue

$20

To record cash sale of one book.

Your business is now $20 richer in cash, and you’ve properly recognized $20 in earned revenue for the period.

How to Record a Sale on Credit (Accrual Basis)

Most B2B businesses and service providers operate on an accrual basis, meaning they recognize revenue when it's earned, not necessarily when cash is received. When you send an invoice to a client, you are making a sale on credit.

This process has two steps: recording the initial sale and recording the eventual payment.

Step 1: The Initial Sale (Creating an Invoice)

Let's say a marketing consulting firm completes a project for a client and sends an invoice for $2,500 with payment due in 30 days.

  1. Identify the accounts: You haven't received cash yet, but the client owes you money. This "IOU" is an asset called Accounts Receivable. You also earned revenue from your services, so the other account is Service Revenue.
  2. Determine the direction of change: Your Accounts Receivable (what you're owed) has increased. Your Service Revenue has also increased.
  3. Apply the debit/credit rules:
    • An increase to an asset (Accounts Receivable) is a debit.
    • An increase to a revenue account (Service Revenue) is a credit.

The journal entry at the time of invoicing is:

Date

Account

Debit

Credit

YYYY-MM-DD

Accounts Receivable

$2,500

     Service Revenue

$2,500

To record invoice #101 issued to Client A.

You have now correctly recognized the revenue in the period you earned it, even without the cash in hand.

Step 2: Receiving the Payment

Three weeks later, the client pays the $2,500 invoice in full.

  1. Identify the accounts: You received Cash. The client no longer owes you this money, so you need to decrease your Accounts Receivable balance.
  2. Determine the direction of change: Your Cash balance increased. Your Accounts Receivable balance decreased. No revenue is recorded here, as it was already recognized in Step 1.
  3. Apply the debit/credit rules:
    • An increase to an asset (Cash) is a debit.
    • A decrease to an asset (Accounts Receivable) is a credit.

The journal entry when you receive payment is:

Date

Account

Debit

Credit

YYYY-MM-DD

Cash

$2,500

     Accounts Receivable

$2,500

To record payment received for invoice #101.

After this entry, your Accounts Receivable balance for this specific invoice is zero, and your cash is correctly recorded.

Ready to transform your tax research workflow?

Start using Feather now and get audit-ready answers in seconds.

Adding Complexity: Sales Tax, Discounts, and Returns

Real-world sales are rarely as simple as the examples above. Here is how to handle common variables.

Accounting for Sales Tax

Sales tax isn't revenue; it's money you collect on behalf of the government that you must later remit. You hold it as a liability until you pay it.

Let's go back to our bookstore. This time, the $20 book is sold in a state with a 5% sales tax. The total collected from the customer is $21 ($20 + $1 sales tax).

  • Accounts Involved: Cash, Sales Revenue, and a new liability account called Sales Tax Payable.
  • Direction of Change: Cash increases by $21. Sales Revenue increases by $20. Sales Tax Payable (what you owe the government) increases by $1.

The entry is:

Date

Account

Debit

Credit

YYYY-MM-DD

Cash

$21

     Sales Revenue

$20

     Sales Tax Payable

$1

To record cash sale with sales tax.

Handling Sales Discounts

If you offer early payment discounts (e.g., "2/10, n/30," which means a 2% discount if paid in 10 days, otherwise the full amount is due in 30), you record this discount in a separate account. This is a "contra-revenue" account, as it reduces your gross sales.

Suppose our marketing consultant offered these terms on their $2,500 invoice, and the client paid within 10 days, taking a 2% ($50) discount. They pay a total of $2,450.

  • Debit #1: Cash ($2,450): The actual amount you received.
  • Debit #2: Sales Discounts ($50): This contra-revenue account increases with a debit.
  • Credit: Accounts Receivable ($2,500): This credits the full invoice amount to clear it off the books.

This allows you to track how much revenue you're forgoing for early payments.

Accounting for Returns and Allowances

Similar to discounts, returns are recorded in a separate contra-revenue account called Sales Returns and Allowances. This is a good practice because it keeps track of problematic products or services without completely erasing the original sale from your records.

For example, if a customer returns a $20 book for a cash refund, the entry would be:

Date

Account

Debit

Credit

YYYY-MM-DD

Sales Returns and Allowances

$20

     Cash

$20

To record customer return of one book.

Using Accounting Software to Simplify Sales Entries

Understanding the manual journal entries is the best way to grasp what's happening in your books. However, in practice, most businesses don't write them by hand. Software like QuickBooks Online, Xero, or Wave automates this entire process.

  • When you create a "Sales Receipt" for an on-the-spot payment, the software automatically debits Cash (or your bank account) and credits Revenue and Sales Tax Payable.
  • When you create an "Invoice" for a sale on credit, the software automatically debits Accounts Receivable and credits your revenue accounts. When you apply a payment, it debits Cash and credits Accounts Receivable.

Even when using these powerful tools, knowing the underlying accounting helps you identify errors, understand your financial reports, and stay in full control of your company's financial story.

Final Thoughts

Properly recording sales is a non-negotiable part of financial accounting. Whether it is a simple cash receipt or a complex invoiced sale with taxes and discounts, the logic of debits and credits ensures your books remain balanced and your reports reflect the true performance of your business.

As your business scales, correctly categorizing revenue and managing obligations like state-specific sales tax becomes more complex. Questions about revenue recognition standards or determining taxability in new jurisdictions can quickly stop a bookkeeper in their tracks. We built Feather AI to provide instant, citation-backed answers to these types of tax and accounting questions, drawn directly from IRS guidance and state tax codes, so you can solve complex issues in seconds.

Written by Feather Team

Published on January 7, 2026