The man, aged 58 and named locally as Philip Reid, was working at the farm near Pitmedden, Udny when the tragedy occurred on Wednesday (May 18).
A spokesman for Police Scotland said inquiries were ongoing.
He said: “We received a report of a man being injured following an incident within a dairy farm in Udny at around 5.15pm on Wednesday.
“Police attended along with other emergency services and sadly the man, aged 58, died.”
A Health and Safety Executive (HSE) spokesman said an inspector had attended the scene and investigations between HSE and Police Scotland would continue.
The tragedy is the latest in a number of fatal incidents to take place on UK farms in recent months.