Entering an investment you are selling is done in the same way as buying one except the total cost of the transaction is entered in the Sell column and the Shares column is entered as a negative amount. The net proceeds from the sale should be transferred from the stock account to your bank or brokerage account.
The proper recording of the stock sale *must* be done using a split transaction. In the split transaction, you must account for the profit (or loss) as coming from an Income:Capital Gains account (or Expenses:Capital Loss). To balance this income, you will need to enter the stock asset twice in the split. Once to record the actual sale (using the correct number of shares and correct price per share) and once to balance the income profit (setting the number of shares to 0 and price per share to 0).
In order to get
In the split transaction scheme presented below, the symbol NUM_SHARES is the number of shares you are selling, SELL_PRICE is the price for which you sold the shares, GROSS_SALE is the total price for which you sold shares, equal to NUM_SHARES*SELL_PRICE. PROFIT is the amount of money you made on the sale. COMMISSIONS are the brokerage commissions. NET_SALE is the net amount of money received from the sale, equal to GROSS_SALE - COMMISSIONS.
Table 8.1. Selling Stock using Split Transaction Scheme
|Account||Number of Shares||Share Price||Total Buy||Total Sell|
As an example, assume you bought 100 shares of a stock for $20 per share, then later sell them all for $36 per share. In the split transaction scheme above, PRICEBUY is $20 (the original buying price), NUM_SHARES is 100, TOTALBUY is $2000 (the original buying cost), GROSS_SALE is $3600, and finally PROFIT is $1525 (GROSS_SALE-TOTALBUY-COMMISSION).
Table 8.2. Selling Stock Split Transaction Scheme
As an example, assume you bought 100 shares of a stock for $100 per share, then later sell them all for $50 per share. In the split transaction scheme below, PRICEBUY is $100 (the original buying price), NUM_SHARES is 100, TOTAL_BUY is $10,000 (the original buying price), (Loss) is $5000, and finally GROSS_SALE is $5000. Assume the commission was $100.00.
Table 8.3. Selling Shares at loss Split Transaction Scheme
Note: You may either enter the loss as a positive number in the
“buy” column or as a negative number in the “sell”
GnuCash will move the “negative profit” to the other column.