Ansari was born in Columbia, South Carolina. He is the son of an Indian Tamil Muslim family. He started acting after graduating from the New York University in 2004. He lives in Los Angeles, California and is an atheist.