Most players finish the main campaign of Mass Effect in roughly thirty hours. That is a comfortable estimate for a first run through the story.
If you are the sort of person who scans every planet, chases down side missions and talks to everyone aboard the Normandy, expect something closer to forty or fifty hours. The galaxy rewards curiosity, and completionists will happily trade a few extra evenings for it.
Either way, it is a meaty adventure — short enough to finish in a couple of weeks, long enough to feel like a proper journey.