Calculating Profit from Stock Sale

Derek Atkins warlord at MIT.EDU
Sat May 5 08:52:22 EDT 2007

Joshua <moorevineyard at> writes:

> Hopefully I'm not messing something up.  I tried to post this a while ago but 
> it doesn't look like it worked.  Anyway...
> In the documentation for buying and selling stock, it says that you need to 
> record profit or loss from the sale of stock in the income account for that 
> stock.  So, if you make regular monthly purchases of a stock or fund over the 
> course of several years, and you periodically sell some shares of a stock or 
> fund in order to buy new cars and houses, or pay for fund fees, etc., how do 
> you determine the profit from those sales?

You need to choose which shares you sell and base the profit
calculation on those.  HOPEFULLY we can get the automated system
working for a future release, but it wont be in 2.0.x and probably
wont be in 2.2, either.

> The documentation doesn't clearly describe this situation with it's buy and 
> sell examples because they only include a single purchase or sale.
> Does anyone know how to handle this?

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-user mailing list