How do you determine the gauge of the needle?

Does it vary depending on the substance?

example what would Test E be 18, 23...?