A fundamental tenet of evolutionary genetics is that the direction and strength of selection on individual loci varies with the environment. Barcoded evolutionary lineage tracking is a powerful approach for high-throughput measurement of selection within experimental evolution that to date has largely been restricted to studies within microbial systems, largely because the random integration of barcodes within animals is limited by physical and molecular protection of the germline. Here, we use the recently developed TARDIS barcoding system inCaenorhabditis elegans(Stevenson et al., 2023) to implement the first randomly inserted genomic-barcode experimental evolution animal model and use this system to precisely measure the influence of the concentration of the anthelmintic compound ivermectin on the strength of selection on an ivermectin resistance cassette. The combination of the trio of knockouts in neuronally expressed GluCl channels,avr-14,avr-15, andglc-1, has been previously demonstrated to provide resistance to ivermectin at high concentrations. Varying the concentration of ivermectin in liquid culture allows the strength of selection on these genes to be precisely controlled within populations of millions of individuals, yielding the largest animal experimental evolution study to date. The frequency of each barcode was determined at multiple time points via sequencing at deep coverage and then used to estimate the fitness of the individual lineages in the population. The mutations display a high cost to resistance at low concentrations, rapidly losing out to wildtype genotypes, but the balance tips in their favor when the ivermectin concentration exceeds 2nM. This trade-off in resistance is likely generated by a hindered rate of development in resistant individuals. Our results demonstrate thatC. eleganscan be used to generate high precision estimates of fitness using a high-throughput barcoding approach to yield novel insights into evolutionarily and economically important traits.