How soon can you take a pregnancy test??

I got my IUD out on September 1 and I’ve had unprotected sex a few times since. All the websites say to wait until your missed period but because I had the IUD my periods were never consistent anyway. When is pregnancy detectable on tests?