Marked diode characteristics dependence on the distance between p-n junction and heterointerface in double heterojunction InP-InGaAsP planar a.p.d.s is described. In a diode with an optimised configuration, as high as 3000 maximum avalanche gain and less than 3×10−6 A/cm2 dark-current density at 0.9 VB are achieved.