Second-order diffraction gratings for 1.55-mu-m DFB/DBR lasers have been formed by holographic photoelectrochemical (PEC) etching directly on n-InP substrates with high uniformity and reproducibility. In particular, the dependence of PEC etching rate on the biasing voltage is investigated. The optimum biasing voltage is also given.