Accounts Payable Journal Entry

Jul 9, 2026

Try it now: upload an invoice and get the data in Excel or CSV

PDF, JPG, PNG, BMP, HEIC, TIFF

Upload your invoices

An accounts payable journal entry records money your business owes a supplier. When an invoice arrives you credit accounts payable and debit whatever the purchase was for. When you pay it you debit accounts payable and credit cash. Those two entries cover the vast majority of AP bookkeeping, but the edge cases, partial payments, early-payment discounts, vendor credits, and accruals for invoices that never arrived, are where the ledger gets messy. This guide walks through every common entry with worked numbers.

What is an accounts payable journal entry?

An accounts payable journal entry is the double-entry bookkeeping record created when your business incurs or settles a liability to a supplier. It has two sides. On receipt of a vendor invoice, you credit accounts payable to increase the liability and debit an expense, inventory, or asset account to record what you bought. On payment, you debit accounts payable to clear the liability and credit cash.

The entry exists because of accrual accounting. You recognize the obligation when the goods or services are received, not when cash moves. That timing difference is precisely what the accounts payable account holds.

Is accounts payable a debit or a credit?

Accounts payable has a normal credit balance. You credit AP to increase it, which happens when a new bill is recorded, and you debit AP to decrease it, which happens when the bill is paid. Because AP is a liability, a credit balance is the expected state, and a debit balance signals an error such as a payment recorded against a bill that was never entered.

The rule generalizes: liabilities and equity increase with credits, while assets and expenses increase with debits. Accounts payable is a liability, so it lives on the credit side.

What is the journal entry when you receive an invoice?

Debit the expense or asset account, credit accounts payable, for the invoice amount. Suppose you receive a $3,000 invoice from an office supplies vendor on net 30 terms:

DateAccountDebitCredit
Jul 1Office Supplies Expense$3,000
Jul 1Accounts Payable$3,000

The debit side depends entirely on what you bought. Inventory purchases debit Inventory. Equipment debits a fixed asset account. Consulting debits Professional Fees. Choosing that account correctly is GL coding, and it is where most AP errors originate, not in the credit side, which is always accounts payable.

What is the journal entry when you pay an invoice?

Debit accounts payable and credit cash for the amount paid. Continuing the example, when you pay the $3,000 bill thirty days later:

DateAccountDebitCredit
Jul 31Accounts Payable$3,000
Jul 31Cash$3,000

Notice that no expense is recorded at payment. The expense was already recognized when the invoice arrived. Recording it again at payment would double count it, which is a classic error when someone pays a bill directly from a bank feed without matching it to the open payable.

Accounts payable journal entries at a glance

EventDebitCredit
Invoice received (expense)Expense accountAccounts Payable
Invoice received (inventory)InventoryAccounts Payable
Invoice paid in fullAccounts PayableCash
Partial paymentAccounts Payable (amount paid)Cash (amount paid)
Early-payment discount takenAccounts Payable (gross)Cash (net) and Purchase Discounts
Vendor credit receivedAccounts PayableExpense or Inventory
Goods received, invoice not yet arrivedExpense or InventoryAccrued Liabilities
Purchase returnAccounts PayableInventory or Purchase Returns

How do you record a partial payment of an invoice?

Debit accounts payable and credit cash for the amount actually paid, leaving the remainder sitting in accounts payable as an open balance. If you pay $1,200 against the $3,000 invoice, debit AP $1,200 and credit Cash $1,200. The vendor's subledger balance falls to $1,800, and that $1,800 continues to age on your accounts payable aging report.

Do not touch the original expense entry. The expense was recognized in full when the liability arose; how you choose to settle it in installments has no bearing on when the cost was incurred.

What is the journal entry for an early-payment discount?

Under the gross method, you debit accounts payable for the full invoice amount, credit cash for the discounted amount actually paid, and credit a Purchase Discounts account for the difference. On a $3,000 invoice with 2/10 net 30 terms paid inside ten days, the discount is $60:

AccountDebitCredit
Accounts Payable$3,000
Cash$2,940
Purchase Discounts$60

The payable clears in full because you have discharged the entire obligation. The $60 you did not pay is a reduction in cost, not forgiveness of debt. Whether chasing these discounts is worth the cash flow trade-off is a real calculation, and we run the numbers in our guide to the early payment discount.

What is the journal entry for a vendor credit?

Debit accounts payable and credit the original expense or inventory account. A vendor credit reduces what you owe, so it moves accounts payable in the same direction a payment would, without any cash leaving. If the supplier issues a $400 credit for damaged goods, debit AP $400 and credit Inventory $400.

The credit then sits against the vendor's balance and is applied to the next invoice, or refunded. Recording it as miscellaneous income is a common and incorrect shortcut; it inflates revenue and understates the cost of goods. Our explainer on vendor credits and on credit memos versus debit memos covers which document triggers which entry.

What is the journal entry when goods are received but no invoice has arrived?

You accrue. Debit the expense or inventory account and credit an accrued liabilities account (often called GRNI, goods received not invoiced) for the estimated amount. This recognizes the cost in the period the goods arrived, which is what the matching principle requires, even though no invoice exists yet.

When the invoice eventually arrives, reverse the accrual and record the payable normally. The evidence supporting the accrual is the goods received note, which is why receiving paperwork matters at period end and not just at the loading dock. A large, stale GRNI balance is one of the first things an auditor pulls, because it usually means either invoices are being lost or receipts are being recorded against deliveries that never happened.

What is the difference between accounts payable and accrued expenses?

Accounts payable covers obligations backed by a supplier invoice you have actually received. Accrued expenses cover obligations you have incurred but for which no invoice has arrived yet, such as unbilled utilities, wages, or goods received not invoiced. Both are current liabilities and both are credited to increase, but AP has a document behind it and an accrual has an estimate.

The practical difference shows up at month end. AP should tie exactly to the sum of open vendor invoices in your subledger. Accruals are management judgment and get reversed the following period.

Is accounts payable an expense?

No. Accounts payable is a liability account on the balance sheet, not an expense on the income statement. The expense is recorded on the debit side of the entry at the moment the invoice is received. Accounts payable simply records that the expense has not yet been paid for in cash.

This trips people up because the two are created in the same journal entry. Debit expense, credit payable: one entry, two statements. The expense hits the income statement immediately; the payable sits on the balance sheet until settled.

How to keep AP entries clean at scale

Most accounts payable errors are not conceptual. They are transcription errors. Someone keys a vendor name slightly differently and creates a duplicate supplier. Someone types $1,340 instead of $1,430. Someone enters an invoice twice because it arrived by email and by post. Duplicate payments in US businesses are common enough to sustain an entire recovery-audit industry, and nearly all of them start at the keyboard.

Removing the typing removes most of the risk. Invoice data extraction software reads the vendor, invoice number, dates, tax, totals, and the full line-item table from any layout, including scans, and returns clean Excel, CSV, or JSON that imports straight into your ledger. The invoice number arrives exactly as printed, which is what lets duplicate detection actually work. See preventing duplicate invoice payments for the controls that sit on top.

Once the data is clean, the entries above post themselves. Teams running QuickBooks can follow importing invoices into QuickBooks, and the same path exists for Xero and NetSuite. When the month closes, the bank side needs reconciling too, and pulling the statement into a spreadsheet is far quicker if you convert the PDF statement into clean rows before you start matching payments to cleared bills.

The short version

Credit accounts payable when the invoice arrives, debit it when you pay. Everything else is a variation: partial payments move part of the balance, discounts split the credit between cash and a discount account, vendor credits reverse the original expense, and accruals stand in for invoices that have not shown up. Get the coding right on the debit side, keep the invoice number exact so duplicates surface, and reconcile the AP subledger to the control account every month. The entries are simple. Keeping the data that feeds them accurate is the actual job.

For the wider picture of how payables sit against the money owed to you, see accounts payable vs receivable.