Media playback is not supported on this device
Muir told BBC Scotland her veterinary medicine studies will mean she will not be with the Scotland team at next year's event on Australia's Gold Coast.
The 24-year-old finished fourth and sixth in the 1500m and 5,000m at the World Athletics Championships.
"My exams aren't until May so Commonwealths being in April, it's just not going to work out unfortunately," said the middle distance runner.
"I go back to university next week. I've got a week off then back to my studies to complete my final year.
Media playback is not supported on this device
"I love running for Scotland whenever I can and the Commonwealths are one of the few opportunities you can do it so, yeah, I'm gutted I'm going to be missing it.
"But you have to think about getting my degree and that was really important to me. I'm sure the team's going to do so, so well. They're going to do great.
"I think I've got at least two, even three more Olympics in me. What events? I don't know. Certainly, so much scope for the future."
However, Muir says the World Indoor Championships in March are "potentially a target".
"These next few months are going to be very full on with my studies," she explained.
"I feel like I'm in reasonable shape. I'd like to run in Birmingham."
Hellen Obiri upset defending world champion Almaz Ayana to win 5,000m gold in London, with Sifan Hassan third.
Muir's time of 14 minutes 52.07 seconds was her new outdoor personal best.
"I'm really happy," she said after Sunday's race.
"It was really tough competition out there. I'm delighted with that. I'm really, really pleased with how I ran.
"My fifth race in 10 days - it's a lot of running and to still come away with that I think there's a lot of potential for the future."

A National Records of Scotland report said the Dumfries and Galloway village remained a "popular venue".
There were 3,511 marriages registered in 2015 compared with 3,499 in 2014.
However, last year's total is more than a third down on the record total for Gretna which dates back to 2004 when there were 5,555 weddings.
Nonetheless, it can still claim to be the "marriage capital" of Scotland and accounts for 12% of all weddings.
It is particularly popular for "tourism marriages" and some 84% of the weddings held in Gretna last year did not involve a resident in Scotland.

That is in part because of its heritage architecture, but more so because of what is inside - the headquarters of the Tata group, one of India's oldest and biggest conglomerates with more than 100 companies that have interests ranging from tea and telecoms, to salt and steel.
In the past decade, it has become one of the UK's biggest employers too.
So it is inside Bombay House that the fate of a steel plant, thousands of miles away in Wales, will be decided by the board of the company.
When Tata took over Anglo-Dutch steelmaker Corus in 2007, it was seen as a bold move for an Indian firm, and here in India there was a strong sense of pride over the first signs of a shift of economic power between developing and developed countries.
The excitement did not last long though. Falling steel demand post-global financial crisis has meant that Tata's steel operations in Europe, and particularly in the UK, have been suffering heavy losses.
It is perhaps been among the biggest challenges facing the group's chairman Cyrus Mistry ever since he took charge in December 2012.
Attempts to turn around Tata Steel Europe have included deals to sell some factories and several rounds of restructuring which in this age has come to mean job cuts.
While it has had to make those tough decisions, Tata is a company that is very conscious of its public image.
In nearly 150 years of operation, it has achieved a position of respect that few other Indian companies have accomplished.
It is easily one of the country's most admired companies, one that is seen to care for the welfare of its employees.
So even if economics forces its hand, Tata will be wary of the impact on its reputation if it decides to shut down its Port Talbot plant.
Laura Muir says she'll be "gutted" to miss April's Commonwealth Games.
[NEXT_CONCEPT]
The number of marriages in Gretna topped 3,500 last year - a slight rise compared with the previous 12 months.
[NEXT_CONCEPT]
Bombay House in the historic Fort area of Mumbai is an iconic building.