The 'I Try' singer will give students at the prestigious Los Angeles university a snapshot of her experiences in a class titled 'The Music Business Now: How it really works and the people and events that influence it'.
The course is convened by The Doors' manager Jeffrey Jampol, who said the star would be a useful case to study.
"[Gray] just made a new record that she financed herself," he told Los Angeles Times.
"She owns it, and she's going to market it independently. She's coming into the class the first week, and she'll perform and play the new record.
"Then, as part of their final, the students are going to help write a marketing plan as to how to break this record."
The course is open to all UCLA students and the general public for a $595 (£432) fee.