As soon as a living organism dies, it stops taking in new carbon. The ratio of carbon-12 to carbon-14 at the moment of death is the same as every other living thing, but the carbon-14 decays and is not replaced. The carbon-14 decays with its half-life of 5,700 years, while the amount of carbon-12 remains constant in the sample. By looking at the ratio of carbon-12 to carbon-14 in the sample and comparing it to the ratio in a living organism, it is possible to determine the age of a formerly living thing fairly precisely.
[https://science.howstuffworks.com/environmental/earth/geology/carbon-142.htm]