2. Wash sales are not illegal. You simply cannot take the loss on the portion of the sale that has been washed by the purchases in the IRA. This gets adjusted on form 8949 when you file your taxes. Alternatively, turn off automatic reinvestment in the IRA.