Those stain-resistant khakis you just picked up at the mall, the tennis ball that holds its bounce longer and sunscreen that’s clear instead of white have something in common — nanotechnology.

Scientists manipulating matter at the molecular level have improved on hundreds of everyday products in recent years and are promising dramatic breakthroughs in medicine and other industries as billions of dollars a year are pumped into the nascent sector.