Your doctor will give you specific instructions on how long to fast before the test. Typically, you will need to fast for 8-12 hours before the test.