OPINION
Defendant Danny C. Johnson appeals the sentence of eleven months’ imprisonment imposed by the district court for Johnson’s violation of the terms of his supervised released. Johnson argues that the district court failed to consider, as an alternative to imprisonment, participation in an in-patient drug-treatment program and that the district court erred in sentencing him to imprisonment for purely rehabilitative reasons. Finding no error, we AFFIRM the sentence imposed by the district court.
I. BACKGROUND
In 1995, Johnson was convicted of one count of conspiracy to distribute crack cocaine and sentenced to sixty months’ imprisonment, to be followed by four years of supervised release. Following his release from prison, Johnson violated the terms of his supervised release by using crack cocaine, as indicated by positive urine tests conducted in 2001. Johnson pleaded guilty to violating the terms of his supervised release at a hearing conducted by the district court on October 12, 2001. Johnson admitted to using crack cocaine, in violation of the terms of his supervised release, at that time.
At the hearing, defense counsel apprised the district court of an exception to the mandatory revocation of supervised release, pursuant to 18 U.S.C. § 3583(g), upon a finding that the defendant had possessed illegal drugs.1 That exception provides that: “The court shall consider whether the availability of appropriate substance abuse treatment programs, or an individual’s current or past participation in such programs, warrants an exception in accordance with United States Sentencing Commission guidelines from the rule of section 3583(g) when considering any action against a defendant who *428fails a drug test.” 18 U.S.C. § 3583(d).2 Defense counsel pointed to Johnson’s compliance with the terms of his supervised release for approximately a year and a half, his employment during that period, and Johnson’s need for in-patient drug treatment. Johnson did not participate in an intensive drug-treatment program during his initial period of imprisonment, although the record does not state why he did not. Defense counsel argued that, in light of the § 3583(d) exception to mandatory revocation, the district court had the discretion to extend Johnson’s term of supervised release or to place him under house arrest and require his participation in an in-patient drug-treatment program.
In response, the government argued that these alternative sanctions would place increased burdens on the probation officer assigned the case and pointed to Johnson’s statement, to his probation officer, that he would not benefit from inpatient treatment. Moreover, the government indicated that the in-patient program mentioned by defense counsel did not have a contract with the probation office and thus suggested that the program was not really “available” in the present case. The government argued for a sentence of eleven months’ imprisonment and that the court should recommend that Johnson be considered for an intensive drug-treatment program while incarcerated. The government suggested that eleven months would give the Bureau of Prisons sufficient time to enroll Johnson in such a program and Johnson sufficient time to complete it.
After hearing the arguments of counsel, the district court sentenced Johnson to eleven months’ imprisonment with a recommendation to the Bureau of Prisons that Johnson be enrolled in an intensive drug-treatment program. The district court emphasized that this sentence was being imposed “not ... just as a punishment” but rather “in an effort to get [Johnson] some help.” Hr’g Tr. at 15.
This appeal followed.
II. ANALYSIS
We review a district court’s decision to revoke supervised release for abuse of discretion. See United States v. Crace, 207 F.3d 833, 835 (6th Cir.2000). We will affirm the district court’s sentence of imprisonment following the revocation of supervised release if the district court considered the applicable policy statements, the sentence imposed is within the statutorily imposed range, and the sentence is not plainly unreasonable. United States v. Jackson, 70 F.3d 874, 878 (6th Cir. 1995).
In this appeal, Johnson first argues that the district court failed to rule on his argument that the § 3583(d) exception to mandatory revocation under § 3583(g) should apply in this case. Johnson is correct that the district court did not state in *429so many words that it was rejecting the § 8583(d) exception. But we have explained previously that “we do not require magic words in the record of the sentencing hearing indicating that substance abuse treatment was considered in order to uphold the district court’s prison sentence.” Crace, 207 F.3d at 836. The facts of the present case support the conclusion that the district court considered and rejected the § 3583(d) option. Johnson’s counsel made the § 3583(d) argument at the hearing shortly before the district court revoked Johnson’s supervised release. Thus, it would be difficult to conclude that the district court was not aware of the option. The district court’s conclusion that an intensive drug-treatment program in prison was “[t]he only solution ... to help” Johnson with his crack addiction, Hr’g Tr. at 15, suggests that the district court concluded that the in-patient program urged by defense counsel would not address Johnson’s addiction problem adequately. See also United States v. McClellan, 164 F.3d 308, 310 (6th Cir.1999) (holding that appellate court may infer that district court considered Sentencing Guidelines policy statements despite district court’s failure to make “explicit reference” to them); United States v. Washington, 147 F.3d 490, 491 (6th Cir.) (noting that sentencing courts “need not engage in ritualistic incantation ... to establish consideration of a legal issue”) (quotation omitted), cert. denied, 525 U.S. 954, 119 S.Ct. 386, 142 L.Ed.2d 319 (1998). It would, of course, be preferable if district courts made explicit reference to the applicable statutory and guideline provisions, but we have not required this in the past.
Second, Johnson argues that the district court abused its discretion in sentencing him to eleven months because the court did not engage in “an appropriate consideration of the statutory factors.” Appellant’s Br. at 16. Because “the district court was not required to impose a sentence of imprisonment under Title 18 U.S.C. § 3583(g),” Johnson argues, the district court’s decision to impose a sentence of imprisonment was based solely on its assessment of his “rehabilitative needs.” Appellant’s Br. at 17. Johnson cites United States v. Jackson, 70 F.3d 874 (6th Cir.1995), for the proposition that a sentencing court may consider rehabilitation in determining the length of a sentence of imprisonment but not in determining whether to sentence a defendant to imprisonment in the first place.
The district court, however, did not sentence Johnson to imprisonment solely in order to rehabilitate him. Instead, the district court sentenced Johnson to additional prison time because Johnson had violated the terms of his supervised release by possessing crack cocaine. See Jackson, 70 F.3d at 879 n. 5 (“In the case of a mandatory revocation of supervised release ... the district court is required to impose a sentence of imprisonment. Therefore, the District Court ... considered rehabilitative goals only in determining the length of defendant’s sentence, not in determining whether to impose a sentence.”). Section 3583(d), which requires that a sentencing court consider drug-treatment programs as an alternative to prison, does not eliminate the mandatory nature of imprisonment under § 3583(g). See Crace, 207 F.3d at 835 (holding that a sentencing court “[i]s required by 18 U.S.C. § 3583(g) to revoke the defendant’s term of supervised release ... unless defendant could come under the exception in 18 U.S.C. § 3583(d)”).
Thus, under § 3583(g), revocation of parole for a supervised-release violation such as Johnson’s is still mandatory once *430the district court rejects the § 3583(d) option. After rejecting the § 3583(d) option, the district court is required by 18 U.S.C. §§ 3583(g)3 to consider a variety of factors, including the defendant’s rehabilitative needs. Therefore, the district court did not err in sentencing Johnson to eleven months in prison in order to give him sufficient time to complete a program to address his crack addition. Eleven months was the upper end of the recommended guidelines range in the present case.4 Johnson’s argument that the district court abused its discretion by failing “to consider and articulate the factors of Title 18 U.S.C. § 3553(a) in fashioning the sentence,” Appellant’s Br. at 18, is without merit. As we held in Washington, 147 F.3d at 491, “[t]he statute’s mandate is ... satisfied if ... the district court’s explanation of the sentence makes it clear that it considered the required factors.” The sentencing hearing transcript makes it clear that the district court considered the required factors, especially Johnson’s need for drug treatment. The sentence imposed was not plainly unreasonable, and therefore it must be affirmed.
*431III. CONCLUSION
For the foregoing reasons, we AFFIRM the sentence imposed by the district court.