The feasibility of the particle induced X-ray emission (PIXE) technique for varve counting of vertically taken marine and lacustrine sediments was studied aiming at its possible use as a dating procedure by observing the yearly variation of the constituent elements. The samples were impregnated with a low viscosity epoxy resin to obtain slabs with preserved layered structure suitable for the PIXE analyses. PIXE-spectra were taken as a function of depth distance and the normalized X-ray peak area variations were determined. Especially, concentration changes of silicon and iron were found to be clear. Due to the employed sample preparation technique the observed chlorine concentration corresponds to the amount of water in the initial sample. Maximum chlorine concentration appeared at positions where the Si and Fe concentrations were near minimum. By plotting the Si/Cl or Fe/Cl peak area ratios, an even more distinct position dependent variation was noted.