A method for determining salinity of water in a borehole of a formation and the water in the formation, comprising: positioning a pulsed neutron logging tool with a far gamma ray detector and a near gamma ray detector in a borehole penetrating a formation, wherein the near gamma ray detector detects gamma rays from the borehole and captures a near detector gamma-ray spectra set including a near inelastic spectrum and a near capture spectrum; and the far gamma ray detector detects gamma rays from the formation and captures a far detector gamma-ray spectra set including a far inelastic spectrum and a far capture spectrum; receiving, by a computer, a pulsed neutron logging tool data set including the near detector gamma-ray spectra set and the far detector gamma-ray spectra set; calculating, by the computer using a standard elements database and a data regression method, a first set of coefficients of elements for the near inelastic spectrum, a second set of coefficients of elements for the near capture spectrum, a third set of coefficients for the far inelastic spectrum, and a fourth set of coefficients for the far capture spectrum, wherein the first, second, third, and fourth sets of coefficients of the elements indicate relative amounts of the elements contributing to the corresponding spectrum; calculating, by the computer, a near detector salinity ratio (SRAT Near) and a far detector salinity ratio (SRAT Far), wherein the near detector salinity ratio is equal to a ratio of a coefficient for chlorine from the second set of coefficients to a coefficient for oxygen from the first set of coefficients, and the far detector salinity ratio is equal to a ratio of a coefficient for chlorine from the fourth set of coefficients to a coefficient for oxygen from the third set of coefficients; calculating, by the computer using a PNL tool characterization database, a near detector apparent salinity ratio using the near detector salinity ratio, and a far detector apparent salinity ratio using the far detector salinity ratio; and calculating, by the computer, a borehole salinity and a formation salinity using the near detector apparent salinity ratio and the far detector apparent salinity ratio and the PNL tool characterization database, wherein calculating of the borehole salinity and the formation water salinity is without using a water saturation value of the formation. positioning a pulsed neutron logging tool with a far gamma ray detector and a near gamma ray detector in a borehole penetrating a formation, wherein the near gamma ray detector detects gamma rays from the borehole and captures a near detector gamma-ray spectra set including a near inelastic spectrum and a near capture spectrum; and the far gamma ray detector detects gamma rays from the formation and captures a far detector gamma-ray spectra set including a far inelastic spectrum and a far capture spectrum; receiving, by a computer, a pulsed neutron logging tool data set including the near detector gamma-ray spectra set and the far detector gamma-ray spectra set; calculating, by the computer using a standard elements database and a data regression method, a first set of coefficients of elements for the near inelastic spectrum, a second set of coefficients of elements for the near capture spectrum, a third set of coefficients for the far inelastic spectrum, and a fourth set of coefficients for the far capture spectrum, wherein the first, second, third, and fourth sets of coefficients of the elements indicate relative amounts of the elements contributing to the corresponding spectrum; calculating, by the computer, a near detector salinity ratio (SRAT Near) and a far detector salinity ratio (SRAT Far), wherein the near detector salinity ratio is equal to a ratio of a coefficient for chlorine from the second set of coefficients to a coefficient for oxygen from the first set of coefficients, and the far detector salinity ratio is equal to a ratio of a coefficient for chlorine from the fourth set of coefficients to a coefficient for oxygen from the third set of coefficients; calculating, by the computer using a PNL tool characterization database, a near detector apparent salinity ratio using the near detector salinity ratio, and a far detector apparent salinity ratio using the far detector salinity ratio; and calculating, by the computer, a borehole salinity and a formation salinity using the near detector apparent salinity ratio and the far detector apparent salinity ratio and the PNL tool characterization database, wherein calculating of the borehole salinity and the formation water salinity is without using a water saturation value of the formation.