A method has been developed to extract pencil beam kernels from measured broad beam profiles. In theory, the convolution of a symmetric kernel with a step function will yield a function that is symmetric about the inflection point. Conversely, by deconvolution, the kernel may be extracted from a measured distribution. In practice, however, due to the uncertainties and errors associated with the measurements and due to the singularities produced in the fast Fourier transforms employed in the deconvolution process, the kernels thus obtained and the dose distributions calculated therefrom, often exhibit erratic fluctuations. We propose a method that transforms measured profiles to new, modified distributions so that they satisfy the theoretical symmetry condition. The resultant kernel from the deconvolution is then free of fluctuations. We applied this method to compute photon and electron dose distributions at various depths in water and electron fluence distributions in air. The agreement between measured and computed profiles is within 1% in dose or 1 mm in distance in high dose gradient regions.