Calculate field value

Is it possible to create a custom field whose value is calculated based on other field inputs? What is the process for setting that up?