Heidelberg, In what way did your view differ from the example?
If you didn't see all the different splits from the example, that's to be expected, since you haven't yet entered the gains information. In this case, all you would need to do is add new splits for the gain-- one for 0 shares anchored to the current commodity in the amount of the gain, and a second balancing split in the same amount going to some income account. Note that in order to input the zero share split, you need to *TAB* through the line, not ENTER. GnuCash insists on adding share values to the split if you press enter. For the record, I used to put gains into the sale entry as you are trying here, but found it much clearer and easier to follow in the books if I entered the gains in a separate transaction. That way, I get a description that identifies this money clearly as gains and there aren't the weird register issues that the documentation notes about multiple lines appearing in the register. For what it's worth, with separate gains transactions, I also enter every gain transaction with the same description format: "XXX Gain/Loss" where XXX is the ticker. That way, in the income account, I have a clear outline of the source of each gain. YMMV. David T. On February 8, 2026 9:03:09 AM GMT+05:30, Heide Wang <[email protected]> wrote: >John, >Thank you. I am more interested in using "Combine the sale and capital gain >in one transaction" as in 9.7.1.1. not the Captial 11. After I entered the >negative share and the selling price, I tapped 'split.' My account register >did not match the example's in 9.7.1.1. I must have done something wrong. >Any additional suggestions would be appreciated. >Heide > >On Fri, Feb 6, 2026 at 12:57 PM John Ralls <[email protected]> wrote: > >> https://www.gnucash.org/docs/v5/C/gnucash-guide/chapter_capgain.html >> >> Regards, >> John Ralls >> >> >> On Feb 6, 2026, at 10:00, Heide Wang <[email protected]> wrote: >> >> I have held stocks in my Gnucash account for over 10 years; I've never sold >> them. I recently sold the stock for a profit. What is the correct way to >> record it to show the profit? I entered the negative share number and >> total sold price, then tabbed the split, but it recorded the sale without >> showing any profit. What did I do wrong? >> I used Gnucash 5.10. My operating system is macOS Sequoia 15.7.3. >> Thank you for your help. >> Heide >> _______________________________________________ >> gnucash-user mailing list >> [email protected] >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. >> >> >> >_______________________________________________ >gnucash-user mailing list >[email protected] >To update your subscription preferences or to unsubscribe: >https://lists.gnucash.org/mailman/listinfo/gnucash-user >----- >Please remember to CC this list on all your replies. >You can do this by using Reply-To-List or Reply-All. _______________________________________________ gnucash-user mailing list [email protected] To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.
