To record an investment in a journal entry, debit an investment asset account and credit cash (or a margin payable, if you borrowed) for the full amount you paid to acquire the asset, commissions and fees included. That total is your cost basis, and every entry that follows — dividends, interest, fair value changes, impairment, the sale — runs off it. Get the first entry right and the rest of the ledger falls into line; get it wrong and you’ll misstate your gain, your tax, or both.
Start With the Cost Basis
Before you touch the ledger, pull the broker’s trade confirmation and the matching bank or brokerage statement. Verify the execution date, the number of shares or units, and the price. Those two documents are the backbone of the entry.
Cost basis is not just the purchase price. It includes commissions, transfer fees, and recording fees — everything you paid to complete the acquisition. Buy 500 shares at $20 with a $15 commission and your basis is $10,015, not $10,000. A $50,000 bond with a $100 service fee has a basis of $50,100.1Internal Revenue Service. Publication 551 (12/2025), Basis of Assets
This is the number that goes on the balance sheet. Forget the fees and you’ll overstate your gain at sale. Inflate the basis and you’ll do the opposite. Neither is a mistake worth explaining later.
Write the Purchase Entry
Double-entry means every debit has a matching credit. When you buy an investment with cash, you debit the investment asset account (assets up) and credit cash (cash down) for the full basis.
A stock purchase looks like this:
- Debit: Investment in Stock — $10,015
- Credit: Cash — $10,015
If you bought on margin, credit a margin payable or liability account instead of cash, because the funds were borrowed. Every entry should carry the transaction date, the specific account titles, the dollar amounts, and a short memo naming what you bought. The memo feels trivial until two years later, when someone needs to sort your bond purchases from your equity purchases in an audit.
Bonds Bought Between Interest Payment Dates
Bonds add a wrinkle when you buy them mid-cycle. You owe the seller for interest accrued since the last coupon, and that accrued interest is not part of your investment cost. It’s a separate receivable. Buy a $100,000 bond with 12% annual interest three months into the period and the entry is:
- Debit: Investment in Bonds — $100,000 (plus any fees)
- Debit: Interest Receivable — $3,000
- Credit: Cash — $103,000
When the next full coupon arrives, the $3,000 you fronted comes back through the receivable, and only the interest earned during your holding period lands in income.
Record Dividends and Interest as They Come In
Once the investment sits on your books, it will produce income you need to record. Timing and type shape the entry.
Cash Dividends
When a company declares a dividend, you have a right to the cash before it arrives. On the declaration date:
- Debit: Dividends Receivable
- Credit: Dividend Income
On the payment date, swap the receivable for cash:
- Debit: Cash
- Credit: Dividends Receivable
If you reinvest through a DRIP, replace the cash debit with a debit to the investment account. You’re buying more shares, so your basis grows, and that increase matters when you eventually sell.
Bond Interest
When a semiannual coupon arrives, debit cash and credit interest income for the amount received. If your reporting period ends between coupons, accrue: debit interest receivable and credit interest income for the amount earned but not yet paid.
Adjust to Fair Value at Period-End
Investments don’t stay at original cost forever. For securities held at fair value, you post periodic adjustments, usually at the end of each reporting period. Where the adjustment lands on your financial statements depends on the security.
Under U.S. accounting standards, equity securities are generally measured at fair value with changes running straight through net income. If a stock position rose $5,000 since last quarter:
- Debit: Investment in Stock — $5,000
- Credit: Unrealized Gain — $5,000
A decline reverses the entry: credit the investment account and debit unrealized loss. These amounts appear on the income statement even though nothing has been sold.
Debt securities follow different rules by classification. Trading securities are treated like equities. Available-for-sale debt securities route unrealized gains and losses through other comprehensive income until sale. Held-to-maturity bonds stay at amortized cost and skip fair value adjustments unless impaired.
Write Down for Impairment
A fair value adjustment handles normal market movement. Impairment is different: a decline that isn’t just noise, where a credit rating dropped, an industry collapsed, or the issuer is at risk of failing. That calls for a write-down.
For equity securities carried under the measurement alternative (those without readily determinable fair values), impairment testing is a one-step approach. If qualitative indicators suggest impairment, you estimate fair value and recognize any shortfall as a loss in net income. There is no temporary-versus-permanent distinction for these securities.
For available-for-sale debt securities, the analysis focuses on credit losses. If management intends to sell, or will more likely than not be forced to sell before recovering cost, the security is written down to fair value and the loss goes to earnings. Otherwise, credit losses go through an allowance and noncredit losses stay in other comprehensive income.
The entry itself is simple:
- Debit: Impairment Loss (or Loss on Investment)
- Credit: Investment Account
Close the Loop When You Sell
Selling closes every entry that came before it. Realized gain or loss equals proceeds minus cost basis, adjusted for reinvested dividends, prior impairments, or wash sale adjustments along the way.
Buy 300 shares at $15 ($4,500 basis) and sell at $20 ($6,000):
- Debit: Cash — $6,000
- Credit: Investment in Stock — $4,500
- Credit: Realized Gain on Sale — $1,500
Sell the same shares at $12 ($3,600) and the gain account flips to a debit for the loss:
- Debit: Cash — $3,600
- Debit: Realized Loss on Sale — $900
- Credit: Investment in Stock — $4,500
One detail trips people up. If you already booked unrealized gains or losses through fair value adjustments, you don’t reverse them on the sale date. Realized gain or loss is always measured from the original acquisition cost, not from the last adjusted carrying value.
When Significant Ownership Changes the Entries
Everything above assumes you own a small slice. Once ownership reaches roughly 20% to 50% of voting stock, accounting standards presume you have significant influence, and the equity method takes over. The initial purchase entry is unchanged: debit the investment at cost, credit cash. After that, two rules diverge from the standard playbook.
You record your proportionate share of the investee’s net income rather than fair value changes. If the company earns $200,000 and you own 25%, debit the investment $50,000 and credit equity income $50,000. Losses reverse the direction. Dividends are not income under this method: when a $10,000 dividend comes in, debit cash $10,000 and credit the investment $10,000. The company’s assets fell when it paid you, and your carrying value reflects that.
What Your Entries Feed on the Tax Return
The ledger flows straight into the tax return. Three areas do the most damage when the entries are sloppy.
Holding Period
Hold an investment one year or less and the gain is short-term, taxed at ordinary income rates. Hold it more than one year and the gain is long-term, taxed at preferential rates.2Office of the Law Revision Counsel. 26 U.S. Code 1222 – Other Terms Relating to Capital Gains and Losses Your entries need to capture the acquisition date and the sale date precisely, because one day can move a gain from one rate schedule to the other. Net capital losses are deductible against other income up to $3,000 a year ($1,500 if married filing separately), with the rest carried forward.3Internal Revenue Service. 2025 Instructions for Schedule D (Form 1040)
Wash Sales
Sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, and the IRS disallows the loss.4Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The window runs both directions.
The disallowed loss is not gone. It’s added to the basis of the replacement shares, deferring the deduction until you sell those. Sell for a $250 loss, buy substantially identical shares for $800 inside the window, and the new basis is $1,050. In your journal, record the sale normally, then adjust the new investment’s basis upward by the disallowed amount. On the return, wash sales are reported on Form 8949 with code “W” and the disallowed loss shown separately.5Internal Revenue Service. Publication 550 (2024), Investment Income and Expenses Your broker reports them on Form 1099-B, and your records need to match.6Internal Revenue Service. Instructions for Form 1099-B
Margin Interest
Interest paid on funds borrowed to buy investments is investment interest expense, deductible up to your net investment income for the year, with excess carried forward.7Office of the Law Revision Counsel. 26 U.S. Code 163 – Interest Record it with a debit to interest expense and a credit to the margin payable or cash. The deduction is claimed on Form 4952.8Internal Revenue Service. Investment Interest Expense Deduction Form 4952
Reconcile the Ledger to the Brokerage Statement
The year-end Form 1099-B reports proceeds, cost basis, acquisition date, sale date, and short- or long-term classification for every security you sold.6Internal Revenue Service. Instructions for Form 1099-B Those fields should agree with your journal. When they don’t, the cause is usually one of three things: the broker adjusted basis for a wash sale, you left commissions out of the original entry, or the trade date you recorded doesn’t match the broker’s.
For covered securities (most stocks bought after 2011 and most bonds bought after 2014), the broker reports basis to you and to the IRS. For noncovered securities, the basis field on the 1099-B may be blank, and tracking it is on you.6Internal Revenue Service. Instructions for Form 1099-B Careful entries earn their keep here.
Most accounting software will refuse to post an unbalanced entry, so arithmetic errors get caught at the door. Debiting the wrong account or carrying a stale basis will not. Reconcile monthly: the investment balance in your books should tie to the cost basis (or fair value, depending on your method) on the statement. Common gaps are reinvested dividends that never got booked, accrued interest entries that were skipped, and fees left out of the original basis.