Retired Navy Capt. William E. Kaloupek, 59, a resident of Fairfax who retired from the Navy in 1974 after 30 years of service, died after a heart attack July 4 in a hospital in Grinnell, Iowa. He was visiting family in Iowa when he was stricken.

Capt. Kaloupek's career was in the Navy's Civil Engineering Corps. He served at various military stations in the United States and abroad. His assignments included Vietnam from 1967 to 1968. He served with the Naval Facilities Engineering Command (NAVFAC) in Washington from 1956 to 1958 and again from 1964 to 1966.

Capt. Kaloupek was a native of North English, Iowa, and attended Grinnell College. He graduated from the U.S. Naval Academy at Annapolis in 1945. He earned a master's degree in civil engineering at the Rensselaer Polytechnic Institute in Troy, N.Y.

After retiring from the Navy, he moved to New Jersey where he spent four years with contract engineering firms. Since returning to this area in 1979, he had been a consulting engineer with the EG & G Corporation in Washington on a project involving the expansion of the Saudi Arabian navy.

Survivors include his wife, the former Mary Ann Howell, of Fairfax; a son, William Thomas Kaloupek of Virginia Beach; a daughter, Mary Sarah Kaloupek of Woodland Hills, Calif.; a brother, Robert T., of Grinnell, and two grandchildren.