The move from St Andrews University is thought to be the first time alcohol-free student accommodation has been offered in Scotland.
The alcohol-free accommodation has been introduced to cater for students with religious beliefs or medical conditions that do not allow drinking.
It will be offered from September, 2015. The flats each hold between four to six people.
Pat Mathewson, St Andrews Students' Association, said: "Our residential services have decided they will offer a small section and then see what the uptake is like. We're always in favor of anything that will make our students more comfortable. "