No single age applied. Marriage, betrothal and childbearing varied by class, region and century, and the evidence for ordinary people is thin. The law set a minimum, customs varied, and most people in western Europe married well after their early teens.
The legal minimum
Church law set the minimum age for marriage at 12 for girls and 14 for boys. Church teaching also held that a marriage required the consent of both partners, although family pressure was common in practice. Local custom sometimes set higher ages, especially in parts of northern Europe. The minimum was a legal floor, not a typical age.
Ordinary people and later marriage
Historical demographers who study marriage patterns describe a long-running pattern of late marriage in north-western Europe, in which many couples set up a new household only after they had earned or saved enough. Researchers at the Cambridge Group for the History of Population and Social Structure report that in England, the average age at first marriage for women was mostly above 24 from about 1550 onward.
The medieval evidence is thinner. Historians disagree about how far back this pattern goes, and the records for the earlier centuries are harder to read than the later parish registers.
What records can show
Manorial court rolls and tax lists from England survive for some places and periods, but they rarely give ages. Serfs often owed a fee called merchet to their lord when a daughter married, so some marriages appear in estate records. For the status of serfs, see who were serfs in the middle ages.
Parish registers of baptisms, marriages and burials were not ordered in England until 1538, so earlier marriage dates are rare.
Noble and royal marriages
Teenage marriage was more common among royal and noble families, where marriages were often arranged to join land and alliances. Betrothals could take place early, and in many cases the couple did not live together until later. Lady Margaret Beaufort, who married in the 1400s, was either 12 or 14 at the time, depending on the source.
Pregnancy and childbirth
Childbirth was dangerous for mothers and babies in every social class, and deaths in childbirth and in infancy were common. When a girl became pregnant depended on when she married, whether she lived with her husband, and her health and circumstances. No single age fits every case.
Why the question is hard to answer
Most surviving records focus on landholders, nobles and the church, and women appear less often in them than men. Few sources give ages at all. Historians therefore estimate, and their estimates vary by place and period.
Other societies had other customs
This answer is about Europe, where Church law shaped marriage. Byzantine, Islamic, Chinese, Japanese and other societies had their own laws and customs, and they should not be assumed to match the European pattern.