Proton and ion beam therapy has proven to benefit tumour control with lower side-effects, mostly in paediatrics. Here we demonstrate a feasible technique for proton and ion beam spectroscopy (PIBS) capable of determining the elemental compositions of the irradiated tissues during particle therapy. This follows the developments in prompt gamma imaging for online range verification and the inheritance from prompt gamma neutron activation analysis. Samples of water solutions were prepared to emulate varying oxygen and carbon concentrations. the irradiation of those samples and other tissue surrogate inserts by protons and ion beams under clinical conditions clearly showed a logarithmic relationship between the target elemental composition and the prompt gamma production. This finding is in line with the known logarithmic dependence of the pH with the proton molar concentration. Elemental concentration changes of 1% for calcium and 2% for oxygen in adipose, brain, breast, liver, muscle and bone-related tissue surrogates were clearly identified. Real-time in vivo measurements of oxygen, carbon and calcium concentrations will be evaluated in a pre-clinical and clinical environment. This technique should have an important impact in the assessment of tumour hypoxia over the course of several treatment fractions and the tracking of calcifications in brain metastases. The analysis of the elemental compositions of the human body by means of irradiated particles was first described by Anderson et al. in 1964 1,2. That technique was coined as in vivo neutron activation analysis 1. That breakthrough gave rise to the measurements of total body hydrogen 3,4 , carbon 5 , nitrogen 6 , calcium and sodium 7,8 , and localized measurements of chlorine 9 and cadmium 6,10. The activated elements were identified because of their decay at different rates or because they emitted gamma-rays of different energy 1. The latter was further developed and nominated as prompt gamma in vivo neutron analysis (PGIVNA or IVNAA). The evaluation of total body protein by IVNAA 11 had a major impact in intensive care patients 12 , thus saving several billions of dollars annually round the World 13. A comprehensive review of in vivo experimental methods to determine the composition of the human body has been carried out by Sutcliffe 14 and Ellis & Eastman 15. The IVNAA relied either on high energy resolution germanium detectors (HPGe) for tracking calcium, cadmium and chlorine or by thick sodium iodide NaI(Tl) detectors for determining total body hydrogen and nitrogen. This technique was developed close to nuclear reactors, particle accelerators or radioisotope neutron sources. Many facilities, such as the ones at Birmingham 16 and Brookhaven 4,17 , were fully designed with the purpose of studying the prompt activation for the spectroscopy of neutron activated elements. More recently, new techniques have emerged for the detection of heavier elements in human organs 18-20. However, neutron therapy, although popular in the 70 s and 80 s, still offers low mar...