Bonaventure OgetoBy Bonaventure Ogeto|

Coding for Teachers: A Second Income That Uses Your First Skill

Kenyan teachers can learn to code in 6 to 12 months of part-time study and use those skills to earn a second income through freelance web development, ed-tech content creation, building school management tools, or offering digital skills training. Teachers already possess the core skills that coding demands: breaking concepts into steps, patience with the debugging process, and clear communication. The transition is shorter than most teachers expect.

Why Teachers Make Better Coders Than They Think

There is a reason coding bootcamps often find that former teachers are among their most successful students. Teaching is, at its core, the ability to take something complicated and make it understandable. Step by step. Brick by brick. With patience for the student who does not get it the first, second, or fifth time.

That is exactly what coding demands. A web application is a sequence of instructions broken into small, logical steps. A function is a lesson plan for the computer: here is the input, here is what we do with it, here is the output. The syntax is different, but the thinking is identical.

Teachers also have a tolerance for frustration that most career switchers lack. You have stood in front of 50 students while half of them are not listening, the projector is not working, and the principal just changed the timetable. Debugging a React component that will not render is stressful, but it is not that stressful.

The problem is not aptitude. The problem is that nobody told you this was an option. Teaching is presented as a calling, full stop. Nobody mentions that the skills you use every day in the classroom translate directly to one of the most in-demand and well-paying fields in Kenya.

Four Ways Coding Creates Income for Teachers

1. Freelance Web Development for Schools and SMEs. Every school needs a website. Most private schools in Kenya still have either no website or a terrible one built on a free template in 2014. You know these schools. You work at them or near them. A teacher who can build a professional school website charges KES 20,000 to KES 50,000 per project. Do three or four per term and you have doubled your salary.

Beyond schools, local businesses near your school need websites, social media integration, and basic digital presence. The butchery, the stationery shop, the hardware store. You walk past them every day. They are your first clients.

2. Ed-Tech Content Creation. Companies like Eneza Education, Kytabu, and smaller platforms need curriculum-aligned content created by people who actually teach. If you can code basic HTML and use content management tools, you can create, format, and upload digital learning content. Pay ranges from KES 500 to KES 2,000 per lesson, and the work is flexible.

3. Building School Management Tools. Attendance tracking, fee collection dashboards, exam result processing, parent communication systems. These are tools every school needs and few can afford from commercial vendors. A teacher-developer who builds a simple attendance tracker for their school and then sells it to five neighbouring schools has a software business.

4. Digital Skills Training. CBC has introduced digital literacy as a competency area. Schools need teachers who can deliver it. If you add coding skills to your profile, you become the teacher who runs the ICT club, teaches basic programming, and gets called to in-service training events. These roles often come with allowances and advancement opportunities.

A Teacher-Friendly Learning Schedule

You teach from 7:30 AM to 3:30 PM. You have marking. You have duty days. You have parents calling. Here is a schedule that works around all of that.

Monday to Friday evenings, 7:00 PM to 8:30 PM. Ninety minutes of coding after dinner. The house is quieter. The WhatsApp groups slow down. This is your window. Use it for tutorials, course lessons, or working on a project.

Saturday morning, 7:00 AM to 10:00 AM. Three hours of project work. This is when you build things. Not watch tutorials. Build. Open VS Code and write code that does something.

School holidays. This is your accelerator. During the April, August, and December breaks, shift to 4 to 6 hours per day. A three-week holiday at this pace covers what takes six weeks during the term.

Total weekly commitment during term: about 10 hours. During holidays: 25 to 30 hours per week. Over one academic year (three terms plus holidays), that is roughly 500 to 600 hours. Enough to become a competent web developer.

Start with Tech Foundations at KES 2,999. It covers the basics in a structured way and takes about 20 to 30 hours to complete. After that, you can decide whether to self-study or invest in a full programme like McTaba's 26-week marathon at KES 120,000 with M-Pesa instalments.

The Salary Ceiling and the Escape Hatch

Let us be honest about numbers. A TSC-employed teacher in Kenya starts at roughly KES 21,756 (Job Group B5) and progresses slowly through CBA-negotiated increments. A P1 teacher with 10 years of experience may earn KES 35,000 to KES 45,000. The ceiling is known, the path is long, and the union negotiations happen on someone else's timeline.

This is not a complaint. Teaching is essential work. But essential work is not always well-compensated, and pretending otherwise does not help you plan your life.

A second income from coding changes the equation. Even a modest freelance practice, two or three website projects per term at KES 20,000 to KES 30,000 each, adds KES 40,000 to KES 90,000 per term to your income. That is significant when your base salary is KES 30,000 per month.

And unlike tutoring (which trades more of your teaching hours for money), coding income scales. Once you build a school management tool, you can sell it to multiple schools. Once you have a portfolio, clients come to you through referrals. The first project is the hardest to land. The fifth comes through word of mouth.

Starting This Weekend

You do not need to tell anyone you are learning to code. You do not need to make a big announcement. Just start.

Saturday: Create a free account on freeCodeCamp. Complete the first HTML lesson. It takes 30 minutes. You will build a simple webpage with headings, paragraphs, and a list. It will feel absurdly simple. That is the point. The first step is supposed to be easy.

Sunday: Complete two more lessons. Start to see how HTML creates structure and CSS adds style. Change the background colour of your page. Change the font. Feel the small satisfaction of making something appear on a screen because you told it to.

Next week: Do 90 minutes each evening. By Friday, you will have a basic understanding of how web pages are built. You will have written real code. You will know whether this feels right for you.

If it does not feel right, you lost one weekend. If it does feel right, you found the second income stream that your TSC salary cannot provide.

Teaching gave you the most transferable skill in the world: the ability to learn something hard and explain it clearly. Coding is just the next hard thing. And you already know how to learn.

Key Takeaways

  • Teaching and coding share a core skill: breaking complex problems into simple, sequential steps. If you can plan a lesson, you can plan a programme.
  • Freelance web development for schools and small businesses is a natural first market for teachers who code. You already know the clients and their problems.
  • Ed-tech companies actively hire teachers who understand both pedagogy and technology. Roles in instructional design, content creation, and product testing pay KES 50,000 to KES 150,000 per month.
  • You do not need to leave teaching to benefit from coding. Evening and weekend study, plus holiday sprints, can build a paying skill within one academic year.
  • The TSC salary ceiling is real. A second skill stream gives you financial breathing room without waiting for the next CBA negotiation.

Frequently Asked Questions

Can a Kenyan teacher learn coding while still teaching full-time?
Yes. With 10 hours per week during term (evenings and Saturday mornings) and accelerated learning during school holidays, a teacher can become a competent web developer within one academic year. The schedule is tight but workable, especially since the evening hours after 7 PM are usually available.
How much can a teacher earn from freelance coding in Kenya?
A teacher doing freelance web development can earn KES 20,000 to KES 50,000 per project building websites for schools and local businesses. Two to three projects per term adds KES 40,000 to KES 150,000 to your annual income. Ed-tech content creation pays KES 500 to KES 2,000 per lesson. The amounts grow as your skills and client base develop.
Do I need to leave teaching to work in ed-tech?
Not necessarily. Many ed-tech roles are part-time or contract-based. Content creation, instructional design, and curriculum consulting can be done alongside teaching. If you eventually find a full-time ed-tech role that pays significantly more, transitioning is an option, but it is not required to start earning from tech skills.
What coding skills are most useful for a teacher in Kenya?
Start with HTML, CSS, and JavaScript for building websites. Then learn a framework like React for more complex applications. For teachers specifically, understanding content management systems, basic data analysis with Excel, and tools like Canva for digital content are also valuable. If you want to build school tools, add Node.js and a database like Supabase or PostgreSQL.
Is there a cheap way to start learning to code as a teacher?
Yes. freeCodeCamp and The Odin Project are completely free and cover everything from beginner to advanced web development. McTaba Tech Foundations at KES 2,999 offers a structured introduction. YouTube has thousands of free tutorials. Your main cost will be internet access, roughly KES 1,000 to KES 2,000 per month for data bundles.

Ready to build real-world apps?

Join the McTaba Labs full-stack marathon (4 months full-time · 6 months part-time). Learn M-Pesa, USSD, and WhatsApp engineering while shipping 8 production apps.

Apply to the McTaba Marathon