In order to improve the electromagnetic compatibility of railway vehicle wireless electric field sensor, a research on electromagnetic compatibility optimization of railway vehicle wireless electric field sensor is proposed. The results show that the optimized RF radiation energy is greatly reduced from 60 to 20, which is completely lower than the standard limit of radiation disturbance, and meets the requirements of EMC design of electronic products. The feasibility and effectiveness of the optimal design are proved. The experimental results show that the test results meet the requirements of general technical conditions of electromagnetic compatibility of speed sensor, which indicates that the electromagnetic compatibility design proposed can be popularized and applied.