If your new company allows rollovers into their 401k, any time at all. I prefer a IRA because I like having the money under my control rather than in a plan administered by someone else. Also, employer plans generally have notoriously high fees, where I can get low fee funds from Schwab/Fidelity/Vanguard.