Carbon dating works by measuring the ratio of carbon-14 to carbon-12 in organic material. Over time, the amount of carbon-14 decreases as it radioactively decays. By measuring the current ratio and knowing the half-life, the age of once-living material can be estimated. However, the production rate of carbon-14 in the atmosphere may change in the future due to factors like solar activity or human activity like nuclear weapons testing. This could affect the accuracy of carbon dating beyond about 50,000 years ago.