Cameron Douglas, the 31-year-old son of the actor Michael Douglas, was sentenced to five years in prison on drug-related charges in Federal District Court in Manhattan on Tuesday.

In January, Mr. Douglas, a D.J. and an aspiring actor, pleaded guilty to charges that he distributed large quantities of methamphetamines and cocaine over a three-year period. He also pleaded guilty to possession of heroin, a charge that was brought while he was on house arrest and awaiting trial.

Judge Richard M. Berman also sentenced Mr. Douglas to five years of supervised release; the judge said that he was not obligated to follow federal sentencing guidelines, which normally would call for a 10-year sentence for such charges. Federal prosecutors did not challenge the sentence.

In court, Mr. Douglas wore a black suit with his hair combed back. He struck a humble tone in his remarks before the bench.