Based on survey data on Bulgarian and Hungarian crop and dairy farms, a double-peaked distribution of technical efficiency is observed. Several factors explain differences in efficiency. Human capital matters not only through age and education but also through gender, as farms with a higher proportion of women are more efficient. Contracting with upstream processors increases efficiency through facilitating the adoption of technology and access to credits. The superiority of family farms over corporate farms is confirmed for crops but not for dairy produce.