A ridged cylindrical cavity has been designed using MICROWAVE STUDIO programme and it is used in the electron cyclotron resonance (ECR) x-ray source. The experimental parameters of the source are optimized for maximizing the x-ray output, and an x-ray dose rate of ∼1000 μSv∕h was observed at 20 cm from the port, for 500 W of microwave power without using any target. With the molybdenum target located at optimum position of the ridged cavity, the dose rate is found to be increased only by 10%. In order to understand the experimental observation, the electric field pattern of the cavity with the target placed at various radial distances is studied. In this note, the experimental and theoretical studies on ECR x-ray source using the ridged cylindrical cavity are presented.