If you are driving behind a motorcycle, your following distance should be at least:

Increase your following distance to at least four seconds when following a motorcycle. If the motorcycle and its rider should fall, you will need extra distance to avoid the obstacle.
DMV Writen Test