3/8-5/8" but most 1/2"
Reasoning:
you have padding and carpet. With a plush carpet and pad you might be at almost an inch or even over.
you don't want the tuck to be so tight that it looks like the carpet is being smashed under the baseboards. The carpet should look like it is just flowing under.
Note that most floors aren't exactly flat. So make sure you are measuring this gap every few feet so that it doesn't become too big or little.
We actually have little wood blocks that we use when setting the baseboards to keep consistency. We knock these out after a room has been nailed.
Completely ridiculous to put baseboards in after carpet. If I am doing a complete gut I want the baseboards in, nailed, spackled, and repainted where needed. I don't want paint on new carpet or guys walking around on carpet. We carpet just a day or two before open house.
... since I can add to an old answer. If you are at 1/2" and it is a little too low the carpet guys can work around this. They don't have to include the padding in the baseboard tuck. These guys are taking out and installing new carpet (that may be much more plush) all the time. The idea of the 1/2-5/8" for normal carpet is that you never want to see a gap over the carpet and don't want it smashed. This is the height I have found works.