Irby L. Price, 58, a budget analyst who retired from the Maritime Administration in the Department of Commerce in 1972 after more than 30 years of federal service, died at his home in Cape Coral, Fla., Saturday following a heart attack.

Mr. Price began his career at the Maritime Administration when he came to Washington in 1941 from his hometown of Newberry, S.C. He served in the Army during World War II and then returned to the administration. He earned a degree in accounting from the Benjamin Franklin University in Washington.

He was a member of the Maritime American Legion Post No. 47. He also had been a member of the Luther Place Memorial Church in Washington and then a member of the council and treasurer of Our Saviour's Lutheran Church in Temple Hills, where he lived before moving to Cape Coral in 1974.

Survivors include his wife, June, of the home in Cape Coral; a daughter, Ruth, of Greenville, S.C.; two sons, J. Michael, of Oxon Hill, and David R., of Poolesville; his father, Lester F., of Newberry, S.C., and three brothers, Grady, Louis and Jason, all of Newberry.

The family suggests that expressions of sympathy be in the form of contributions to the Heart Fund.