A portfolio tracker can show the correct share count and still have the wrong total value if the related cash entry is missing. Think of each trade as a change in both holdings and cash.
Here is one sample ledger, from an opening balance through a purchase, a dividend, and a partial sale. All amounts are illustrative US dollars, and fees are omitted.
Start with $10,000 cash.
Your sample account begins with $10,000 cash and no shares. Total tracked value is $10,000. An opening deposit establishes the money available to invest; it is not an investment gain.
Buy 10 shares at $100.
The purchase costs $1,000. Cash falls to $9,000, and the ledger now holds 10 shares. At the same $100 price, those holdings are worth $1,000.
Total value remains $10,000. The purchase changed where your money sits. It did not create a $1,000 gain or remove $1,000 from your overall tracked value.
Common recording error: adding $1,000 of holdings while leaving cash at $10,000 produces an incorrect $11,000 total. Linking the trade to the cash account keeps both entries connected.
Receive a $20 cash dividend.
A $20 cash dividend increases cash to $9,020. You still own 10 shares. With the sample share price held at $100, holdings remain worth $1,000 and combined value becomes $10,020.
A cash dividend and a reinvestment are separate events. If your broker reinvests a dividend, the resulting purchase changes the share count as well. Record what actually happened rather than increasing shares for every dividend.
Sell 4 shares at $110.
Now suppose the sample market price is $110. Selling four shares produces $440 of proceeds, taking cash to $9,460. Six shares remain, worth $660 at that price.
Combined value is $10,120: $9,460 cash plus $660 holdings. The sale moves value between the two. The difference from the opening $10,000 reflects the dividend and price changes in this example.
| After this event | Cash | Holdings | Total |
|---|---|---|---|
| Opening balance | $10,000 | $0 | $10,000 |
| Buy 10 at $100 | $9,000 | $1,000 | $10,000 |
| Receive $20 dividend | $9,020 | $1,000 | $10,020 |
| Sell 4 at $110 | $9,460 | $660 | $10,120 |
What happened to cost basis and P&L?
In this single-purchase example, the four shares sold cost $400 and sold for $440, producing a $40 realized gain before fees. The six remaining shares cost $600 and are worth $660, producing a $60 unrealized gain. Together with the $20 cash dividend, that explains the $120 increase in value.
This example has one purchase and no additional deposits or withdrawals. More complicated histories require consistent records and careful treatment of costs and cash movements.
Record it in Allfolio.
- Set up the asset and the cash account for that brokerage account.
- Enter the trade details. With Sync Cash Change on, select the cash account that paid for the buy or received the sale proceeds.
- Tap Add and review the saved transaction, updated share count, and corresponding cash entry.
- Reconcile against your brokerage statement, including fees and other cash movements.
Watch the $1,000 purchase update linked cash in Allfolio. You can also step through the full sample ledger or organize records across accounts.
Correct a purchase price and reconcile the cash
For a separate example, start with $10,000 cash and record a buy of 10 shares at $100. The linked cash balance is $9,000. Your statement shows an execution price of $98. Open the holding, tap the original buy under Transactions, change the price to $98 and save. The payment falls from $1,000 to $980. You still hold 10 shares, and the same cash account now shows $9,020. This example excludes fees. Watch the price correction and cash update in Allfolio.
Try a cash check: use the free portfolio cash reconciliation calculator to compare the cash movements you recorded with your closing balance. No account required.
Keep both sides of the trade together.
Explore Allfolio for iPhone. Subscription required; a 14-day free trial is available to eligible Apple Accounts. Current plans and prices appear in the app and App Store.
View Allfolio on the App Store ↗Sample prices and transactions are illustrative. Actual costs, execution details, and corporate actions may change the entries you need to record.