Learn how to accurately record investment purchases, unrealized gains/losses, and realized gains/losses in QuickBooks with this step-by-step guide.

Recording an investment on your balance sheet is simple, but tracking its fluctuating value requires careful and consistent bookkeeping. Whether you're dealing with publicly traded stocks that change daily or other securities that are revalued periodically, QuickBooks handles these adjustments through journal entries. This guide will walk you through setting up the necessary accounts and provide step-by-step instructions for recording both unrealized and realized gains and losses on your investments.
Before you can track any changes, you need a proper account structure. A disorganized chart of accounts can turn a simple adjustment into a time-consuming cleanup project. To properly track investments, you need a few key accounts in place.
Here are the four accounts you’ll want to create:
With these accounts established, you are now ready to record your investment activities correctly.
Every journey starts somewhere, and for an investment, that start is the purchase date. This transaction establishes the investment's cost basis, which is the total amount you paid for the asset, including any fees or commissions. Recording this correctly is non-negotiable, as this figure is the benchmark for all future gain or loss calculations.
Let’s say you purchase 100 shares of Company A at $50 per share, for a total cost of $5,000, paid from your business checking account.
Here’s how to record it using a journal entry:
Your balance sheet now shows a $5,000 increase in your investment asset and a corresponding $5,000 decrease in cash.
An unrealized gain or loss is the change in an investment's value before you sell it. It’s a “paper” gain or loss. For financial reporting purposes, especially if you follow accrual-basis accounting, you should periodically adjust the investment's carrying value to reflect its current market price. This is often called a "mark-to-market" or "fair-value" adjustment.
These adjustments are typically made at the end of a reporting period, such as month-end, quarter-end, or year-end.
Following our previous example, you bought 100 shares for $5,000. At the end of the quarter, you check your brokerage statement. The market price of those shares has increased to $60 per share, making the total value $6,000.
You have a $1,000 unrealized gain ($6,000 market value - $5,000 cost basis). Here’s the journal entry to record this:
Now, let's say in the next quarter, the market experiences a downturn. Your 100 shares, which had a recorded book value of $6,000 at the end of the last quarter, are now trading at $55 per share, for a total market value of $5,500.
You have a $500 unrealized loss for this period ($6,000 book value - $5,500 current market value). You need to make an adjusting entry to decrease the investment's value.
Here’s the journal entry:
After this entry, your asset account balance is $5,500, which matches the market value, and your Profit & Loss reflects the $500 loss for the period.
Start using Feather now and get audit-ready answers in seconds.
A gain or loss becomes "realized" when you sell your investment. This is the moment your paper gain or loss converts into an actual, taxable event. The accounting for a sale is a multi-step process: you must record the cash received, remove the investment from your books at its current carrying value, and recognize the final realized gain or loss.
Critically, when an investment that had unrealized gains or losses recorded is sold, all prior unrealized entries associated with that investment must be reversed.
Let's continue our example. Your investment's original cost was $5,000. Its current book value on your balance sheet is $5,500 due to past fair-value adjustments. Now, you decide to sell all 100 shares for $75 each, receiving a total of $7,500 in cash.
First, calculate the realized gain. The realized gain is always calculated as Sales Price minus Original Cost Basis.
$7,500 (Sales Price) - $5,000 (Original Cost) = $2,500 Realized Gain
Next, determine the net unrealized gain or loss currently on the books for this investment. You initially recorded a $1,000 gain and then a $500 loss, so you have a cumulative net unrealized gain of $500 still associated with this asset.
Now, assemble the journal entry to reflect the sale:
This single entry accomplishes four things: it shows the cash came in, clears out the paper gain from your P&L, takes the investment off your balance sheet, and books the real, taxable profit correctly. By zeroing out the unrealized gain associated with the sold asset, you avoid recognizing the same gain twice.
Properly recording changes in investment value is about maintaining an accurate balance sheet and a truthful profit and loss statement. By setting up distinct accounts for unrealized and realized gains and using journal entries for mark-to-market adjustments and sales, you ensure your records in QuickBooks are both compliant and transparent.
While correct bookkeeping is the foundation, understanding the tax treatment of investment activities—from preferential capital gains rates to complex wash sale rules and varying state-level tax laws—is a different challenge. Manually researching a client's specific tax situation across federal and state codes can be a drain on your time. This is where AI assistants, designed ground-up for tax research, can become an invaluable part of your workflow by delivering accurate, citation-backed answers in seconds. This lets you shift your focus from finding information to providing strategic advice, powered by Feather AI.
Written by Feather Team
Published on November 24, 2025