When following other vehicles, maintain a space cushion of at least:

A three-second following distance is the minimum recommended safe distance to maintain between your vehicle and the car ahead of you. At high speeds or in bad weather, you will need to increase your following distance.
DMV Writen Test