Pregnancy test

I was wondering when the soonest time is to take a pregnancy test and have it be accurate? Thoughts? Personal experiences?