Special rules may apply when figuring basis in these situations:
Short-term losses on shares on which you received an exempt-interest (tax-free) dividend
Short-term losses on shares on which you received a capital gain distribution
If either of these situations applies to you, see IRS Publication 550: Investment Income and Expenses for more information.