The aim of the article is to measure and evaluate the economic and technical efficiency as well as the total productivity of dairy farms in Poland. The research used data from the Polish FADN. The analysis covered the years 2008–2017. The study group consisted of 730 farms. An iteration-optimization method, k-means clustering, non-parametric DEA method, and aggregated Färe–Primont indexes were used to achieve the goal. The conducted research allowed for the distinction of four types of dairy farms with different levels of economic efficiency. We prove that the costs of labor, energy, maintenance of machines and buildings, fodder, depreciation, and overheads, as well as agricultural land, affect the technical efficiency and total productivity of dairy farms. We also prove that over the analyzed years, technical efficiency decreased in all groups of dairy farms, while the Färe–Primont index of total productivity changes slightly increased. The validity of these studies and their practical significance result from the need to improve the competitiveness of dairy farms and increase their profitability. Our research fills a gap in research on measuring and evaluating the efficiency and productivity of dairy farms, and at the same time represents an original approach to the studied phenomenon. Moreover, it allows for the explanation of differences in the effectiveness of different types of dairy farms, providing useful information for the design of effective targeted policy interventions to improve the competitiveness of the Polish dairy sector. There are opportunities to improve both the technical efficiency and productivity of dairy farms in Poland. This increase will be possible thanks to the improvement of agricultural advisory services and ensuring that farmers participate in training in proper nutrition, reproduction, milk marketing and other management skills.