You can return funds to your Roth IRA after you have taken it as a distribution so long as you do so within 60 days of the distribution.
If it has been more than 60 days since the distribution, any money placed in the Roth IRA is considered a contribution.
If the replacement of funds falls within the 60 day window you should still specify to the financial institution that it is a return of funds and not a new contribution just to be safe.
Yes. You can roll over the amount to the Roth IRA, or another of your Roth IRAs (excluding inherited Roth IRAs), provided the amount is rolled over within 60 days from when you received the amount and the Roth IRAs were not involved in a rollover during the 12 months preceding the date of the distribution. This is because a Roth IRA can be involved in a rollover only once during a 12-month period. Roth conversions are not counted in this 12-month rule.
Eligible amounts that are rolled over within the 60 days are not subject to income tax or the early distribution penalty, even if the amount is a non-qualified distribution.
For more on the 60-day rule, including circumstances under which the 60-day period can be extended, see Exceptions To The 60-Day Rollover Rule.
Question answered by Denise Appleby, CISP, CRC, CRPS, CRSP, APA
Taking money from a Roth IRA (or a Traditional IRA) is not an irrevocable event if put the money is back into the same kind of an IRA within 60 days of the original withdrawal. The IRS considers that a “rollover.” However, because this type of transaction was abused by people taking short term loans from their IRAs, the IRS has placed severe limitations on this. Get the advice of a CPA if you plan to do this.