In a standard double-entry journal, an unrealized gain is recorded as a debit to the investment asset account and a credit to a gain account. Whether that credit is an income statement gain or an equity account called other comprehensive income depends on how the security is classified, not on how large the gain is. The debit side never changes; the credit side is where the accounting rules split.
Calculating the Amount First
Before you can post an entry, you need the dollar figure. Take the investment’s current fair market value and subtract its cost basis — the original purchase price plus any commissions or transaction fees paid to acquire it.1Internal Revenue Service. Topic No. 703, Basis of Assets The difference is your unrealized gain. If the number is negative, it’s an unrealized loss.
A quick example. You bought shares for $50,000 including commissions. They’re worth $55,000 today. Your unrealized gain is $5,000. That $5,000 is the amount you’ll post to the journal.
Why the Debit Goes to the Investment Account
Asset accounts carry debit balances, and a debit to an asset increases it. When your investment’s fair value rises above what you paid, the asset on your balance sheet is understated until you adjust it. Debiting “Investment in Equity Securities” (or whatever the account is named in your chart of accounts) for $5,000 brings its carrying value from $50,000 to $55,000, matching current market value.
This part of the entry is the same for every kind of security that gets adjusted to fair value. The classification only decides what happens on the other side.
Where the Credit Goes
Under U.S. GAAP, the credit lands in one of two places: a gain account on the income statement, or an unrealized gain account inside other comprehensive income (OCI), which sits in the equity section of the balance sheet. The choice depends on whether you hold an equity security or a debt security, and for debt securities, how you’ve classified it.
Equity Securities
Since FASB’s Accounting Standards Update 2016-01, equity securities with a readily determinable fair value are no longer split into trading or available-for-sale buckets. Under ASC 321, almost all equity investments are measured at fair value with changes flowing through net income. For a $5,000 gain on a stock holding, the entry is:
- Debit: Investment in Equity Securities $5,000
- Credit: Unrealized Gain on Equity Securities (income statement) $5,000
The credit hits earnings for the period, even though nothing has been sold and no cash has moved. Equity investments without a readily determinable fair value (a stake in a private company, for example) can use a measurement alternative: carry the investment at cost, adjusting only for impairment or observable price changes in orderly transactions for the same or a similar security.
Trading Debt Securities
Debt securities held with the intent to sell in the near term are classified as trading. Under ASC 320-10-35-1, unrealized holding gains and losses on trading debt securities are included in earnings.2Financial Accounting Standards Board. Investments—Debt Securities (Topic 320) and Regulated Operations (Topic 980) No. 2018-04 The entry looks just like the equity example above: debit the investment, credit an unrealized gain account that lands on the income statement.
Available-for-Sale Debt Securities
Available-for-sale (AFS) debt securities aren’t held for short-term trading, but the entity hasn’t committed to holding them to maturity either. Unrealized gains on these skip the income statement and go straight to other comprehensive income:
- Debit: Investment in AFS Debt Securities $5,000
- Credit: Unrealized Gain — Other Comprehensive Income (equity) $5,000
The gain still increases total equity, but it keeps market volatility out of net income. The running balance sits in a line item called accumulated other comprehensive income (AOCI) until the security is sold or impaired.
Held-to-Maturity Debt Securities
A debt security is held-to-maturity when the entity both intends and has the ability to hold it until it matures. These are carried at amortized cost, not fair value, so unrealized gains and losses aren’t recorded in the accounts at all. Fair value gets disclosed in the notes, but the balance sheet carrying value doesn’t move with the market. No journal entry for unrealized gains is needed.
Recording an Unrealized Loss
An unrealized loss is the mirror image. You credit the investment account to bring its carrying value down, and you debit a loss account. Which loss account depends on the same classification rules.
For equity securities and trading debt securities, the debit hits the income statement:
- Debit: Unrealized Loss (income statement)
- Credit: Investment account
For available-for-sale debt securities, the debit hits OCI instead:
- Debit: Unrealized Loss — Other Comprehensive Income (equity)
- Credit: Investment in AFS Debt Securities
One wrinkle for AFS debt: if the decline reflects a credit loss — say the issuer missed interest payments or was downgraded — the credit loss portion has to run through earnings rather than OCI. Under ASC 326-30, entities assess factors such as missed payments, deteriorating issuer condition, or rating changes to identify a credit-related loss that requires a charge to net income.3OCC.gov. Bank Accounting Advisory Series
Periodic Adjustments Are Cumulative
Fair value adjustments are posted at the end of each reporting period, whether monthly, quarterly, or annually. Compare each investment’s current fair value to its existing carrying value on the books, and post the difference.
Say a stock investment was adjusted to $55,000 last quarter and is now worth $57,000. You post a $2,000 entry: debit the investment, credit the gain account. If it had instead fallen to $53,000, you’d reverse $2,000 of the earlier gain. You’re not stacking new gain entries on top of old ones. Each period simply pulls the carrying value into line with current fair value.
These adjusting entries have to be posted before the trial balance runs and the financial statements come together. Adjusted balances flow into the balance sheet, into the income statement for gains and losses recognized in earnings, and into the statement of comprehensive income for gains and losses routed through OCI. The statement of stockholders’ equity picks up the movement in AOCI.
What Happens When You Sell
A sale converts an unrealized gain into a realized one. The mechanics vary by classification, but the pattern is the same: record the cash received, remove the investment from the books, and recognize any remaining gain or loss in earnings.
If you sell equity shares carried at $55,000 (original cost $50,000) for $55,000 cash, no additional gain hits earnings at the point of sale, because prior periods already ran the $5,000 through net income. Sell for more or less than the current carrying value, and only the difference is a new gain or loss.
Available-for-sale debt is different. The unrealized gain built up in AOCI has to be reclassified into earnings when the security is sold, so the total profit ends up in net income by the time the transaction closes.
Unrealized Gains and Taxes
Unrealized gains do not create a tax bill. Federal law requires a realization event — usually a sale or exchange — before a gain is taxable.4Office of the Law Revision Counsel. 26 U.S. Code 1001 – Determination of Amount of and Recognition of Gain or Loss You can hold a stock that has doubled and owe nothing until you sell. The bookkeeping entries described above adjust your financial statements; they don’t affect your tax return in the year they’re posted.