Marguerite S. Trotter, 47, a former teacher in the Fairfax County public schools who later was active in lawyers' wives groups, died of cancer Tuesday at Commonwealth Doctors Hospital in Fairfax.

Mrs. Trotter was born in Raleigh, N.C., and grew up in Durham, N.C. She graduated from the University of North Carolina in 1955 and for the next two years taught in the elementary grades of the Charlotte, N.C., public school system.

In 1957, she moved to the Washington area and settled in Fairfax. She taught in the elementary grades of the Fairfax schools for four years.

In 1958, she married Haynie S. Trotter, a lawyer. Mrs. Trotter was a member and an officer of both the Northern Virginia Law Wives Association and of the Virginia State Law Wives Association. She also was a member of the Country Club of Fairfax.

In addition to her husband, of Fairfax, where the family lives, survivors include a son, Richard H., and a daughter, Frances Patricia, both of Fairfax; one sister, Anne S. Thompson of Durham; four brothers, Carvel C. Stapleford of Woodbury Heights, N.J., John M. Stapleford of Chester, Conn., William A. Stapleford of Durham, and Robert W. Stapleford of Richmond.

The family suggests that expressions of sympathy be in the form of contributions to the American Cancer Society, or to the Church of the Good Shepherd, Fairfax.