Rake any moss growing in the lawn to remove the moss. Moss does not have roots, so removal in this manner is enough to get rid of the moss.
Take several samples of soil from the lawn according to the instructions from your local university extension service, and send the soil samples to them for testing. This service usually costs less than 20 dollars as of the date of publication. Most lawns require a pH of between 5.8 and 6.5, while moss requires a more acidic soil. Add amendments to the soil according to the soil test recommendations.
Apply a rye or turf grass seed to any bare areas of soil, using the seeding rate on the side of the bag. Cover the seeds with 1/4 inch of topsoil to protect the seeds from birds and to keep them from washing away in the rain. Keep the seeds moist until they germinate. Covering up bare spots in the lawn will prevent the development of moss.
Plant shade-tolerant grass in shady areas to keep the lawn lush throughout the landscape. Trim low hanging branches to expose the area to more sunlight.
Run a core aerator over the lawn to remove plugs of soil and alleviate compaction. Core aerators are available for rent from many hardware or landscaping stores.