How soon after intercourse can a pregnancy test tell you if you're pregnant?

Im not expert but from my experience I would say 2 to 3 weeks.