BackgroundRoutine asymptomatic testing using RT-PCR of people who interact with vulnerable populations, such as medical staff in hospitals or care workers in care homes, has been employed to help prevent outbreaks among vulnerable populations. Although the peak sensitivity of RT-PCR can be high, the probability of detecting an infection will vary throughout the course of an infection. The effectiveness of routine asymptomatic testing will therefore depend on how testing and PCR detection varies over time.MethodsWe fitted a Bayesian statistical model to a dataset of twice weekly PCR tests of UK healthcare workers performed by self-administered nasopharyngeal swab, regardless of symptoms. We jointly estimated times of infection and the probability of a positive PCR test over time following infection, then compared asymptomatic testing strategies by calculating the probability that a symptomatic infection is detected before symptom onset and the probability that an asymptomatic infection is detected within 7 days of infection.FindingsWe estimated that the probability that the PCR test detected infection peaked at 77% (54 - 88%) 4 days after infection, decreasing to 50% (38 - 65%) by 10 days after infection. Our results suggest a substantially higher probability of detecting infections 1–3 days after infection than previously published estimates. We estimated that testing every other day would detect 57% (33-76%) of symptomatic cases prior to onset and 94% (75-99%) of asymptomatic cases within 7 days if test results were returned within a day.InterpretationOur results suggest that routine asymptomatic testing can enable detection of a high proportion of infected individuals early in their infection, provided that the testing is frequent and the time from testing to notification of results is sufficiently fast.FundingWellcome Trust, National Institute for Health Research (NIHR) Health Protection Research Unit, Medical Research Council (UKRI)Research in contextEvidence before this studyA number of studies have investigated the relationship between viral load of SARS-CoV-2 and the presence and severity of symptoms of COVID-19. Furthermore, a handful of studies have looked in detail at how the probability of detection by PCR varies over the course of an entire infection. We searched PubMed, BioRxiv, and MedRxiv for English-language articles with the search terms (“covid-19” OR “coronavirus” OR “SARS-CoV-2”) AND (“test” OR “detection” OR “PCR” OR “polymerase chain reaction” OR “RT-PCR” OR “reverse transcriptase” OR “swab” OR “antigen” OR “symptoms” OR “RNA”) AND (“regular” OR “widespread” OR “shedding” OR “health-care workers” OR “HCW” OR “regular”) AND (“asymptomatic” OR “pre-symptomatic” OR “exposure”). This search returned a total of 396 results, of which 21 were studies that either gathered similar data, i.e. symptom, antibody and PCR test data longitudinally, or they specifically investigated PCR sensitivity over the course of infection. Only one study directly attempted to fit a similar PCR positivity curve, but no study inferred unobserved infection times for individuals and used those estimates to jointly fit (across all individuals) the probability of a positive PCR test as a function of time since infection.Added value of this studyOur study extends the existing literature in two specific ways. First we infer infection times for all individuals using a rigorous Bayesian framework and within our model we directly use the inferred posterior distributions of infection time to fit a curve across all individuals to characterise the probability of detection via PCR test over the course of infection. Because HCWs in our dataset were tested regardless of symptoms, many of these tests were performed close to the time of infection and therefore help to characterise our probability of detection estimates, in contrast to earlier datasets that only include tests performed as a result of symptom onset or hospitalisation. Second, we incorporated these estimates into a model of testing frequency to provide insights into the likely effectiveness of routine testing in settings like hospitals.Implications of all the available evidenceRoutine asymptomatic testing by PCR is being used in many settings with the aim of preventing outbreaks within vulnerable populations. We present evidence that the majority of SARS-CoV-2 infections can be detected prior to symptom onset (or within 7 days if there is no symptom onset) by a routine asymptomatic testing regime with a high enough testing frequency and short delay between testing and notification of cases. Therefore, routine asymptomatic testing regimes can be calibrated using our findings to help optimise infection detection.