A device for estimating scatter in X-ray imaging is described. An anti-scatter grid with varying grid ratio is used in conjunction with an X-ray detector. The anti-scatter grid comprises attenuating lamellae that block scattered radiation. The anti-scatter grid contains regions of lesser or greater scatter rejection efficiency, which can be achieved by variations in the grid ratio. Contrast between these regions can be used to estimate residual scatter content. A method for estimating scatter from this device is further described.