The present invention provides ALK5 inhibitors of the formula (I) wherein the variables are as defined herein. Also provided are pharmaceutical compositions, methods of making the compounds and intermediates thereof; and methods of using the compounds.