In order to reconstruct the structure of a long-period grating, both the complex core-to-core transmission function and the complex core-to-cladding transmission function should be known. However, in practice, only the core-to-core transmission function of the grating can be measured. We demonstrate theoretically the reconstruction of long-period gratings from only the core-to-core transmission function. The reconstruction is performed by extracting the complex core-to-cladding transmission function of the grating from its core-to-core transmission function. Generally, the extraction is not unique; however, we show that by writing an additional grating in cascade to the interrogated grating, a unique reconstruction can be obtained. In weak long-period gratings, only the amplitude of the core-to-core transmission function is needed to reconstruct the grating. The results of our work can enable the experimental reconstruction of long-period gratings from their transmission function as well as the development of novel distributed sensors.