which one is correct :
I prefer to live with someone rather than to live alone
or
I prefer to live with someone rather than living alone
infinitive-vs-gerund
which one is correct :
I prefer to live with someone rather than to live alone
or
I prefer to live with someone rather than living alone
Best Answer
Either is correct, but this form is usually constructed with a parallel structure.
However, when the main clause is written with a to-infinitival verb, we usually use a bare-infinitival verb after rather than.
It's also possible to use the -ing form, especially when the rather-than structure precedes the sentence.
Reference
Practical English Usage(PEU) Second Edition by Michael Swan