T. Marvin Hemphill, 60, a retired management analyst with the National Aeronautics and Space Administration, died Thursday of a heart attack and stroke at the Rockingham Memorial Hospital in Harrisonburg, Va.

Mr. Hemphill worked for many years as an electrical engineer with the Bureau of Ships and as a budget analyst at the Naval Research Laboratory. He was also a management analyst at the National Science Foundation and from 1957 to 1961 was a consultant to the Plan Organization of the Iranian government under the Agency for International Development.

Mr. Hemphill also assisted the Iranian government with management services under the United Nations Development Program.

Born in Sulphur, Okla., Mr. Hempbill grew up in Arizona and received a B.S. In physics and a masters in education from Arizona State University.

He was an incorporater of the town of Forest Heights, Md. and served several terms as a councilman. He was also the principal founder and the first president of the Oxon Hill Recreation Club.

Surviving are his wife, Ruth, of the home; two sons, John Kenneth, of Takoma Park, adn Thomas M. of Upper Marlboro; a daughter, Stephanie Jean Johnson of Two Harbors, Minn: a brother T. J. Hemphill, of Glendale, Ariz,; and a sister, Violet Hillis, also of Glendale; and one granddaughter.

THe family suggests tha texperssions of sympathy be in the form of contributions to the Davies Memorial Unitarian Church in Temple Hills, Md.