A portable XRF analyzer includes a hand shield to substantially block x-rays from impinging on a hand of a user. The portable XRF analyzer includes a heat sink over an x-ray source and a heat sink over an x-ray detector. The heat sinks are separated from each other by a thermally insulative material.