To improve the noise immunity of a dq frame based open-loop phase detection (OPD) under high-frequency noise grid conditions, this paper develops a detailed model to quantitatively evaluate the phase detection error and noise immunity. It is found that the OPD behaves differently in terms of noise immunity when the dq frame is in different angle positions with the grid voltage. When the grid voltage coincides with the d axis, the high-frequency noise has the smallest impact on the phase detection accuracy, and the OPD thus has the strongest noise immunity. Inspired by this conclusion, an improved OPD algorithm is proposed in this paper, which can effectively reduce the phase detection error by fine-tuning the rotation angle of the dq frame to ensure that the angle between the voltage vector and d axis is always close to 0. The improved OPD algorithm has a fast and precise character to detect the phase information with less error and is flexible for application. Under heavy noise grid conditions, it can also effectively shorten the dynamic response time in the phase-detecting process using a low-pass filter (LPF) with a higher cut-off frequency. The correctness of the noise immunity analysis and the effectiveness of the improved OPD algorithm are verified by the simulations and experimental results in MATLAB and RT-LAB.