An is an indefinite article.. I'll be there in half an hour.
The rule that many people vaguely remember is that one uses 'a' if the word that follows it begins with a consonant, and one uses 'an' if the following word begins with a vowel.. From middle english an, from old english ān (“a, an”, literally “one”).