Labor has lost a vote in federal parliament over setting a minimum price for milk to help the struggling dairy industry.

Agriculture Minister David Littleproud has labelled the move as a political stunt, calling it a cruel hoax to dairy farmers.

Despite the loss, Labor is promising to investigate minimum prices for milk if the party wins the next federal election.