There is no penalty for violating the wash-sale rule, but any losses from the sale of a security that trigger the wash-sale rule cannot be claimed for tax purposes. Additionally, the cost basis of the new security purchased to replace the one sold is adjusted to reflect the disallowed loss, potentially increasing the amount of capital gains that would be subject to taxes when the new security is eventually sold.