I don't know about American taxes, but at least in Canada individuals can do this for capital gains / losses.
If you have investments that produce losses one year, you can carry those losses forward to cancel out capital gains in following years and reduce your tax payable.