ABSTRACT: Although most Hymenoptera reproduce via arrhenotokous haplodiploidy, the underlying genetic mechanisms vary. Of these, the most widespread mechanism appears to be single-locus complementary sex determination (sl-CSD), in which individuals that are diploid and heterozygous at a sex-determining locus are female, and individuals that are homozygous or hemizygous are male. Because inbreeding increases the probability of producing diploid males, which are often sterile or inviable, sl-CSD can generate substantial inbreeding depression. To counteract this, Hymenoptera with traits that promote inbreeding, such as gregariousness, may evolve one or more of the following: inbreeding avoidance, functional diploid males or alternative sex determination mechanisms. Here, we investigate sex determination, inbreeding depression and inbreeding avoidance in Neodiprion lecontei, a gregarious, pine-feeding sawfly in the family Diprionidae. First, via inbreeding experiments and flow cytometry, we demonstrate that this species has CSD. By modeling expected sex ratios under different conditions, we also show that our data are consistent with sl-CSD. Second, via tracking survival in inbred and outbred families, we demonstrate that inbred families have reduced larval survival and that this mortality is partly attributable to the death of diploid males. Third, using a no-choice mating assay, we demonstrate that females are less willing to mate with siblings than nonsiblings. Together, these results suggest that inbreeding depression stemming from CSD has shaped mating behavior in N. lecontei. These results also set the stage for future comparative work that will investigate the interplay between sex determination, ecology and behavior in additional diprionid species that vary in larval gregariousness.