The average cost to build a duplex is between $95 and $220 per square foot, according to data from Fixr. The cost to buy a duplex will vary widely depending on the location, size and housing market when you buy.