Total Returns vs Net Proceeds

Is the taxable amount based on total returns or net proceeds or something completely different?
For example:
Net Fiat Invested: $5,000
Cost Basis: $4,950
Net Proceeds: $500
Total Return: $2,500