Net capital gain or loss is calculated by subtracting the cost basis from the sales proceeds. This total amount will help investors determine their overall net capital gain or loss from any particular transaction.