Depending on which grammar system you subscribe to, you may hear some very different ideas concerning when and how to hyphenate. Different style manuals conform to different rules. With hyphens, it's better to look up any case where you might be confused.
While it's hard to create hard and fast rules for hyphens, here are a few instances where you will normally use this punctuation mark.
When you use two or more words together as a single thought describing or modifying a noun and you put them before the noun, you should hyphenate them.
off-street parking
chocolate-covered peanuts
When compound modifiers come after the noun, you don’t need to hyphenate.
parking is off street
peanuts are chocolate covered
If the ages are being used as adjectives or nouns, you should hyphenate them.
But if the age comes after a noun and a verb, you don’t hyphenate it.
You also use hyphens when:
Writing out numbers 21 through 99, like twenty-one and ninety-nine (and everything in between).
Prefixes that come before a proper noun, like anti-American.
Avoiding confusing or awkward combinations, like shell-like or de-ice.
For more information, check out the full form of our article "Dashes Vs Hyphens" here.