Power allocation for secondary users (SUs) in cognitive networks is an important issue to ensure the SUs’ quality of service. When the mutual interference between the primary users (PUs) and the SUs is taken into consideration, it is wanted to achieve the conflict-free power allocation while synchronously maximizing the capacity of the secondary network. In this paper, the optimal power allocation problem is considered in orthogonal frequency division multiplexing cognitive networks. The single SU case is primarily formulated as a constrained optimization problem. On this basis, the multiple SUs case is then studied and simulated in detail. During the analysis, the mutual interference among the PUs and the SUs is comprehensively formulated as the restrictions on the SU’s transmission power and the optimization problems are finally resolved by iterative water-filling algorithms. Consequently, the proposed power allocation scheme restrains the interference to the primary network, as well as maximizing the capacity of the secondary network. Specifying the multiple-SUs case, simulation results are exhibited in a simplified scenario to confirm the efficiency of the proposed water-filling algorithm, and the influence of the mutual interference on the power allocation and the system capacity is further illustrated. [ABSTRACT FROM AUTHOR]