Working out a star's age. Spectroscopy also tells us the age of a star by looking at the amount of its matter made up of chemical elements other than hydrogen and helium. "The earliest stars were composed of just hydrogen and helium because they were the first elements to form after the Big Bang".