Narrative:

Solo cross-country training flight for student pilot beginning at xa:35Z from ZZZ to ZZZ1.on the flight back from ZZZ1 a full-stop taxi back took place at ZZZ2; after which center reported that altitude data was no longer available from the cessna around xc:19Z.additionally; the left tank fuel gauge was reading low and the right tank fuel gauge was dropping at a rate more rapid than when would be considered normal.right after handoff from center to approach the cessna started to experience radio failure (roughly xc:50Z).I [advised of] communications loss and squawked 7600.full electrical failure occurred shortly thereafter; I garnered this information from the ammeter gauge being negative. ZZZ now had cloud ceilings at 2;400 feet that were not forecasted; making it impossible to continue to the intended destination.flaps; electrical; were inoperable during landing.the plane was landed around xd:05Z at ZZZ3 (private).I believe center's notification of transponder issues was a good indication of an issue early on; and it was clear the issue was progressing as the fuel indicators and the radios failed. Since ZZZ could not be safely reached under VFR; and the fuel quantity was in question; the decision was made to land at a known; nearby paved airstrip. Because of this decision; IMC or marginal VFR conditions were never experienced; and the plane and pilot made a safe landing.

Google
 

Original NASA ASRS Text

Title: C152 student pilot reported an electrical failure and low fuel situation during a cross country flight.

Narrative: Solo cross-country training flight for student pilot beginning at XA:35Z from ZZZ to ZZZ1.On the flight back from ZZZ1 a full-stop taxi back took place at ZZZ2; after which Center reported that Altitude data was no longer available from the Cessna around XC:19Z.Additionally; the Left Tank fuel gauge was reading low and the Right Tank fuel gauge was dropping at a rate more rapid than when would be considered normal.Right after handoff from Center to Approach the Cessna started to experience radio failure (roughly XC:50Z).I [advised of] communications loss and squawked 7600.Full electrical failure occurred shortly thereafter; I garnered this information from the Ammeter gauge being negative. ZZZ now had cloud ceilings at 2;400 feet that were not forecasted; making it impossible to continue to the intended destination.Flaps; electrical; were inoperable during landing.The plane was landed around XD:05Z at ZZZ3 (Private).I believe Center's notification of transponder issues was a good indication of an issue early on; and it was clear the issue was progressing as the fuel indicators and the radios failed. Since ZZZ could not be safely reached under VFR; and the fuel quantity was in question; the decision was made to land at a known; nearby paved airstrip. Because of this decision; IMC or marginal VFR conditions were never experienced; and the plane and pilot made a safe landing.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.