Whether you may drink water before a sugar test depends on which test you are having. During pregnancy, for example, there is a screening test with 50 grams of glucose (dextrose) and a diagnostic test with 75 grams. You do not need to be fasting for the screening test, but you do for the diagnostic test.

For the 75-gram test during pregnancy, the patient information says you may drink still water while fasting. For other sugar tests, and after drinking the sugar solution, the specific instructions apply in each case. The specific instructions from your practice or lab are therefore what count.
Which type of test is meant?
The 50-gram screening test during pregnancy is used to look for signs of gestational diabetes; you do not need to be fasting for it. Blood is drawn one hour after you drink the sugar solution, and if the result is abnormal, a diagnostic test usually follows.

For the diagnostic pregnancy test with 75 grams of glucose, the oral glucose tolerance test (oGTT), blood is first drawn while you are fasting. You then drink a sugar solution. Further blood samples are taken at set intervals. For the fasting period before this test, the patient information we reviewed allows still water.
Outside of pregnancy, too, a diagnostic 75-gram oGTT is usually carried out in the morning after a fasting period. However, the preparation requirements can differ depending on the test description and the facility. So the name “sugar test” alone does not tell you reliably whether water is allowed.
When is water allowed?
For the diagnostic 75-gram oGTT during pregnancy, the relevant patient information allows still water during the fasting period. For the 50-gram screening test, you do not need to be fasting. However, this does not tell you whether water is allowed in every situation around the test.
Timing is especially important: being allowed to drink water while fasting before the test does not automatically answer whether you may drink additional water during the waiting time after the sugar solution. The information on this is not consistent. During this phase, follow the instructions from your practice or lab.

What applies if the instructions are unclear?
Ask before your appointment whether a 50-gram screening test or a 75-gram oGTT is planned and what rules apply to water. Also clarify whether the instructions cover only the time before the test or the waiting time after the sugar solution as well.

If you have already had water, tell the staff when and how much. Based on the planned test protocol, the staff can decide how to proceed. Do not change or postpone the test on your own.