Legal variables, such as offense severity and criminal history, principally shape sentencing decisions, but extralegal factors such as race, gender, and age also influence sentencing outcomes. Studies focusing on the effect of pretrial detention on sentencing outcomes usually associate pretrial detention with negative sentencing outcomes. The current study followed 90,037 federal defendants from indictment through sentencing, and measured the effects of pretrial detention on sentencing decisions. Detention (and, to a lesser degree, revocation of pretrial release) was associated with increased likelihood of receiving a prison sentence and greater sentence length, even when controlling for offense severity and criminal history scores.