Godfrey John Huber, 88, a retired trade analyst with the U.S. Tariff Commission who also had worked in various foreign aid programs, died of congestive heart failure Monday at the Potomac Valley nursing home in Rockville.

Mr. Huber, who was born in Harrison, Ohio, graduated from Indiana State University. During World War I, he served in the Army Air Service in France. With two brothers, he later formed a general trading company, E. E. Huber & Company, with offices in several cities in Central America.

In World War II, Mr. Huber moved to Washington. He worked for the Board of Economic Warfare and later for various foreign assistance and foreign trade programs. He joined the Tariff Commission about 1955 and remained there until he retired in 1963.

Until the death of his wife, the former Helen D. Hitch, in 1980, Mr. Huber lived at Rossmoor Leisure World in Silver Spring. He later lived in Glen Echo Heights.

Survivors include three sons, Godfrey Stephen, of St. Petersburg Beach, Fla., Robert David, of Glen Echo Heights, and Charles H., of Vienna; two daughters, Helen Patricia Laymon of Springfield, Ill., and Mary Julia Jane Becker of Portola Valley, Calif.; one brother, Marion Huber of Cincinnati; two sisters, Alma Huber of Cincinnati and Helen K. Huber of Washington; 12 grandchildren, and seven great-grandchildren.