The average dinosaur is thought to have lived roughly 100 to 200 years, assuming it wasn't killed by predators, disease, or injury first.
Exact lifespans are hard to pin down since we rely on fossil evidence, but that range reflects the general estimates for many large dinosaurs.