Under ideal driving conditions, the minimum following distance between your vehicle and the vehicle in front of you should be:

Leave at least four seconds worth of space between your vehicle and the vehicle directly ahead of you (under ideal driving conditions).
DMV Writen Test