Your invested amount is simply the total cost of all your buy trades. When you sell part of your holdings, your remaining ounces decrease, but your average price stays the same. If you later make new purchases, the average price is recalculated based on all the buys you’ve made so far. Your invested amount is then updated by multiplying this new average price by your current holdings.
Example: Calculating the invested amount with multiple purchases:
You purchased a total of 25 ounces of XAU for $131,800 at different cost prices:
- 5 ounces at $5,200
- 3 ounces at $5,000
- 10 ounces at $5,300
- 7 ounces at $5,400
Your average purchase price works out to $5,272 per ounce ($131,800 ÷ 25 oz).
Your invested amount for the 25 ounces is $131,800 (25 oz × $5,272).
Example: How invested amount changes after a partial sale and a new purchase
You initially bought 100 ounces of XAG at an average price of $45.88 per ounce, giving an invested amount of $4,588.
After selling 55 ounces, you are left with 45 ounces.
Your invested amount for the remaining holdings becomes $2,064.60 (45 oz × $45.88) and the average price stays the same after the partial sale ($45.88).
Later, you purchase an additional 100 ounces at $50 per ounce.
At this point, your average price is recalculated using all purchases made to date (including quantities that were previously sold). This gives you a new average price of $47.94 per ounce (total purchase cost $9,588 ÷ 200 oz).
Your updated invested amount for 145 ounces (45 existing + 100 new) is therefore $6,951.30 (145 oz × $47.94).