How soon can you take a test

How soon can you take a pregnancy test to know if your pregnant? Been having some symptoms ( headaches feelings bloated sick when I eat and back aches )