Anaerobic digestion of biomass produces biogas for combustion and also provides a residual digestate. Although sometimes regarded as a waste product, the nutrient‐rich chemical composition of digestate makes it a potential organic fertilizer for agriculture. The goal of this study was to evaluate the effectiveness of digestate as a fertilizer on the biomass yield and chemical composition of cocksfoot (Dactylis glomerata L.). In a 5‐year small‐plot field experiment digestate fertilization treatments supplying 90, 180, 270, 360 and 450 kg N ha−1 were compared with untreated plots and plots fertilized with 180 kg N ha−1 of mineral N fertilizer. Swards fertilized with digestate produced higher biomass yield compared with the control. The same rate of nitrogen fertilizer (180 kg N ha−1) supplied as digestate and from mineral fertilizers gave similar results on biomass yield. Herbage in swards fertilized with digestate contained less nitrogen, but the C:N ratio was much more suitable for biogas production. Digestate fertilization resulted in higher concentrations of cellulose and hemicellulose in biomass and lower contents of the inhibitors of anaerobic digestion—sulphur, calcium, magnesium and phosphorus—compared with those of swards receiving mineral fertilizers.