Under ideal weather and traffic conditions, keep a minimum following distance of:

The more distance between your vehicle and others, the more time you have to react to the movements of other drivers. Keep a minimum following distance of three seconds under normal weather and traffic conditions. Increase your following distance under unusual weather or traffic conditions.
DMV Writen Test